??? 05/28/06 06:07 Modified: 05/28/06 06:10 Read: times |
#117189 - Timed access Responding to: ???'s previous message |
I havent looked at that parts datasheet for a while but I do know that some registers require the use of timed access, where the register has to be set within a number of clock cycles.I know that I had to use in-line assembler when i was using it because the C statement PMR |= 1 isnt always an atomic operation.I know it looks like it should be but looks can be deceiveing in C.Also in your C code youve got two sets of includes I dunno if thats just a posting error..
I may be wrong about the timed access but i dont have the data sheet to hand it just struck me it might be the problem. |