12c5a changed 89c52 chip has a problem, please answer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

12c5a changed 89c52 chip has a problem, please answer

422件の閲覧回数
918338431
Contributor I

This is the timer program for the 12c5a chip.

1.jpg

I copied him directly to the 89c52.
It is reasonable to change to the 89c52 chip when it is universal
But it is stuck in this timer program.

2.jpg

I tested this way.
The serial port can only receive 0x11
Then the following program did not respond.
Please answer your questions. Thank you.

【PCB Prototype】,China PCB Prototype, PCB Prototyping, Fabrication Manufacturer - PCBIndex.com 

0 件の賞賛
1 返信

375件の閲覧回数
jamesbone
NXP TechSupport
NXP TechSupport

The issue that you are having it is with the Initialization, of the TIMER1, when you are changing the value to use the timer, then you change the Baud Rate of the Serial Port.   You need to change it again to the previous value of TCON TMOD to be able to transmit or receive again.

Hope this clarifies.


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛