microcontroller to microcontroller communication

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

microcontroller to microcontroller communication

1,095 次查看
avl
Contributor I

dear sir/madam;

 

i had communicated Freescale MC9S08AW60 to PCsuccessfully  but in second application  unable to communicate with microcontroller PIC 18f452

 

In this application

Mc9s08AW60 is unable  to get data from microchip PIC 18f452 where as it is able to send data to PIC 18f452

 

Points already covered by me.

 

1.> Software is same which is communicating  from PC. ( hence all setting are same as well as all initialisation what we are using in PC communication )

 

2.> IC MAX232 ( In case of PC communication ) is removed and RX and TX are connected to each other.

 

3.> Transmission had gone through properly.

 

4.> unable to get data from microcontroller. 

 

I request a fast feedback .it will be highly appreciated.

 

BR
Hasan

标签 (1)
0 项奖励
回复
1 回复

637 次查看
Lundin
Senior Contributor IV

- Do you get any receive flags at all set in the S08? Such as framing error, overrun error etc? If not, they aren't connected properly. Measure on Rx pin with an oscilloscope. Or perhaps the debugger is destroying the "clear-by-reading" flag registers. Run the program without debugger connected.

 

- Any buffers etc between the MCUs? Are both MCUs running at the same voltage?

 

- Less likely: missing pull-up on RX line. PIC clock being too inacurrate, yielding a baudrate fault larger than 3%. In these cases you should at least get framing errors etc.

 

 

Btw is there any particular reason why you would use a MAX232 in new designs? Why not use an alternative without the huge caps, like MAX202?

0 项奖励
回复