|ARM Technical Support Knowledge Articles|
Applies to: C166 C Compiler
Information in this article applies to:
In single-chip mode the C164 microcontroller needs a reset configuration byte at address 0x003E according to the Infineon errata sheet for the C164. How can I locate such a constant at this address?
There are many ways to do this. One way is to add the following assembly lines either at the end of the START167.A66 module or in a separate assembly module.
?C_RESETCONFIG SECTION DATA BYTE at 0x003E C164_CM EQU 0 ; Compatibility Mode Control Bit C164_CSSEL EQU 0 ; Chip Select Lines C164_SALSEL EQU 0 ; Segment Address Lines C164_CLKCFG EQU 0 ; Clock Generation Mode C164_CONFIG SET C164_CM OR (C164_CSSEL << 1) OR (C164_SALSEL << 3) OR (C164_CLKCFG << 5) DB C164_CONFIG ?C_RESETCONFIG ENDS
Article last edited on: 2001-11-04 00:00:00
Did you find this article helpful? Yes No
How can we improve this article?