??? 06/13/07 21:13 Modified: 06/13/07 22:14 Read: times |
#140721 - Update #2 Responding to: ???'s previous message |
Russ said:
Interesting. I messed around with the config program last night trying to answer the original question, and found it to be almost brain dead in the way it was handling the CP0RIE and CP0FIE bits. If the code generated by config worked for you, then I suspect that either:
1. You got lucky and needed a configuration where the config program just happened to do the right thing, or 2. The CP0RIE and CP0FIE bits are in fact not used on the 'F120. Right now, I'm betting on #2. I will run a test this morning to find out for sure. I bet wrong. Based on some tests I ran this morning, I convinced myself that the CP0RIE and CP0FIE bits are real and you have to enable them in order to get interrupts from the comparator. As Tsuneo pointed out here, they are effectively ANDed with the corresponding bits in EIE1. So you have to mess with both sets of bits in order to enable the comparator interrupts. I don't see any reason offhand that the apparently redundant bits are useful, but that doesn't mean there isn't one. -- Russ |
Topic | Author | Date |
Enabling C8051F120 Comparator Interrupts | 01/01/70 00:00 | |
all I can say is ... | 01/01/70 00:00 | |
Interesting | 01/01/70 00:00 | |
another possibility | 01/01/70 00:00 | |
I was using Config2 | 01/01/70 00:00 | |
Update from the OP | 01/01/70 00:00 | |
Update #2![]() | 01/01/70 00:00 |