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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

223 Views
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 Kudos
1 Reply

176 Views
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 Kudos