This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

external clock selection using UCFG1 for P89LPC9408

I am selecting external clock using UCFG1 SFR register in START900.A51 file for P89LPC9408

is the following code is sufficient to activate my external clock in my hardware?.

NAME ?C_STARTUP

_UCFG1 EQU FOSC OR (WDSE SHL 4) OR (BOE SHL 5) OR (RPE SHL 6) OR (WDTE SHL 7)

_UCFG2 EQU 0

CSEG AT 0FFF0H

DB _UCFG1 ; place UCFG Bytes in hex file

DB _UCFG2 ; reserved for future use

please reply.

0