??? 01/16/08 20:38 Modified: 01/16/08 20:44 Read: times |
#149602 - why are you screwing with the trim? Responding to: ???'s previous message |
The P89LPC952 has a TRIM register that can be used to tune the frequency of the RC oscillator. During reset, the TRIM value is initialized to a factory pre-programmed value to adjust the oscillator frequency to 7.373 MHz ± 1 %.
a slight baud rate deviation may just give the effect you see. or is it that TRIM &= ~0x04; should be TRIM &= ~0x40; if one (the 952) is close with 'your' trim value, there is no guarantee that the other (the 954) will be. Thus, for the trim, identical code can have different effect. Erik |
Topic | Author | Date |
Serial communication problem | 01/01/70 00:00 | |
have you heard of formatting and comments? | 01/01/70 00:00 | |
I am sorry about formatting | 01/01/70 00:00 | |
if you remove the ISR and leave EA in, the uC will | 01/01/70 00:00 | |
I removed ES = 1, still same result. | 01/01/70 00:00 | |
How to post source code | 01/01/70 00:00 | |
few more notes | 01/01/70 00:00 | |
timing? | 01/01/70 00:00 | |
Andy, read my post | 01/01/70 00:00 | |
I did!![]() | 01/01/70 00:00 | |
why are you screwing with the trim? | 01/01/70 00:00 | |
Thanks everyone its was trim register | 01/01/70 00:00 | |
Hello, World | 01/01/70 00:00 |