??? 06/16/10 08:25 Read: times |
#176708 - I think HAL is less risky? Responding to: ???'s previous message |
Murray R. Van Luyn said:
The most user friendly solution I came up with was simply to rename the CKCON SFR register with a pre-compiler define statement, and ask the user to uncomment this re-definition as required You're still relying upon the bit(s) that you require being in that register, and with your required "sense". You're also relying on it being a "simple" register; ie not relying on any SFR paging or suchlike... etc, etc, ... You avoid all these assumptions - and their inherent risks - by providing a HAL: http://www.8052.com/forum/read/176611 |