• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
  • slider image 488
  • slider image 491
:::

論壇索引


Board index » All Posts (mon0452)




RS485硬體電路
#11
中級會員
中級會員


請問:
有關RS485的電路

MCU出來要加一顆MAX485, 在MCU和MAX485中間TX和RX是否一定要加光耦合來作隔離嗎?

那為什麼要隔離呢?

謝謝!!

發表於: 2008/7/2 18:07
頂部


Re: i2c 10-bit address
#12
中級會員
中級會員


i2c 10BIT 經過這幾天的測試,,,

單1個master和slave,通訊讀寫都OK,,
1個master對2個slave問題就來了,,
每個slave不管位址對不對都會產生中斷,,
所以當master要讀取ACK時就會發生問題,,
位址正確的A-slave還在處理資料,B-slave就已經回ACK,,,
導致master收到錯誤的資料,,,
而且,B-slave不回ACK又會把SCL拉LOW,以致佔住BUS,,,
所以,,,不知道要怎麼用,,,~~~@@@***&&&

救人喔~~

發表於: 2008/7/1 13:52
頂部


Re: i2c 10-bit address
#13
中級會員
中級會員


我是工廠設備,有150個 slave,所以address就不夠了,我每個slave device都有加一個buffer,所以通訊上還OK,只是位址不夠用真的很麻煩

有別的方案,有什麼通訊協定,位址是可以多一點的呢?

謝謝!!

發表於: 2008/6/30 9:44
頂部


Re: i2c 10-bit address
#14
中級會員
中級會員


因為ADDRESS不夠用,

發表於: 2008/6/27 18:08
頂部


i2c 10-bit address
#15
中級會員
中級會員


使用PIC16F887 i2c 10-bit address master and slave的問題

有幾個地方不了解:
1, 8bit位址,MCU要等位址正確了才會設定SSPIF,再由該slave發出確認,但master發送10bit 2個byte的位址,MCU都會設定SSPIF,是否使用10bit位址,確認訊號要slave自己判斷address

2, SSPCON 的設定有什麼樣的差別??
0111 = I2C Slave mode, 10-bit address

1111 = I2C Slave mode, 10-bit address with Start and Stop bit interrupts enabled

3, 使用10bit I2C bus速度是否不能到達400K

4. SSPSTAT 到底有什麼樣的差異,兩樣都設定沒有什麼差異!?
In I2 C Master or Slave mode:
1 = Slew rate control disabled for standard speed mode (100 kHz and 1 MHz)
0 = Slew rate control enabled for high speed mode (400 kHz)

5, 有無I2C 10BIT master and slave source code,可以提供參考

謝謝大家!

發表於: 2008/6/27 10:36
頂部


Re: 請教bootloader的觀念
#16
中級會員
中級會員


另再請教, 第一次要燒錄MCU的bootloader程式,程式中的bootloader是否要放在interrupt中,或副程式中,中斷中並包含真正要執行出貨的其他中斷副程式,main中是空白的,

877和887到底ROM有什麼不樣,我有試過用PIC.H中的flash read & write都可以

感謝!!!

發表於: 2008/3/18 15:58
頂部


Re: 請教關於PIC16F887的Boot loader
中級會員
中級會員



發表於: 2008/3/18 14:10
頂部


請教bootloader的觀念
#18
中級會員
中級會員


各位大師
compiler=PICC sdt v9.6, device=PIC16F877a
請教bootloader的觀念,不知是否正確

所謂有bootloader function的晶片燒錄的程序:
1. 將C compiler中的bootloader sample code 用ICD 2入MCU
2. 再將要出貨的程式(A.HEX)使用PC programmer載入A.HEX做bootloader燒錄,可重覆一再更新A.HEX
3. 不可再將A.HEX用ICD 2做燒錄,不然bootloader function 會不見

不知之前版大所提供的"PIC_downloader.exe"是否可以使在PICC sdt v9.6 內的bootloader sample code

感謝!!

發表於: 2008/3/14 16:19
頂部


Re: 請問 Hi-Tech C 會自動警告變數超過RAM的容量嗎?
#19
中級會員
中級會員


請問,,,
那如果要宣告的變數很多超過1個BANK的容量,要怎麼辨?
不想要分開兩個變數名稱,是否有方法或是語法可以用,,,
感謝!!!感謝!!!

發表於: 2008/3/8 14:01
頂部


PICC compiler 怎麼把程式放置在特定的program ROM位址
#20
中級會員
中級會員


PICC compiler 怎麼把程式放置在特定的program ROM位址

請教各位大師::
環境_device=PIC16F887_compiler=PICC STD V9.6

因要使用bootloader,但不知要如何把我要的某程式區塊,放置在特定的program ROM位址,compiler的語法要怎麼寫呢?

感謝!!!!!!

發表於: 2008/3/5 10:34
頂部



« 1 (2) 3 4 5 6 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------