Hi Tom,
Yes, I am using XP.
There are 2 lights that comes on, one is green which stays on and one is red which flashes.
When I use the "reset" commands at the command window it seems to have some effect on the rate of flash on the red light, and displays some "random" clock rate like 17.84Mhz.
Could it be because of my code where I did not set up the ICS to the correct mode eg. FEI or FEL mode and the ENBDM bit in the BDCSCR register is not set?
This is my asm code
 ; Include derivative-specific definitions
            INCLUDE 'derivative.inc'
;
; export symbols
;
            XDEF _Startup
            ABSENTRY _Startup
;
; variable/data section
;
            ORG    RAMStart         ; Insert your data definition here
ZERO        equ   $3f                 ;7 segment LED
ONE         equ   $06
TWO         equ   $5b
THREE       equ   $4f
FOUR        equ   $66
FIVE        equ   $6d
SIX         equ   $7c
SEVEN       equ   $07
EIGHT       equ   $7f
NINE        equ   $67
DOT         equ   $80
ExampleVar: DS.B   1
;
; code section
;
            ORG    ROMStart
_Startup:
;_Initialize:
            LDHX   #RAMEnd+1          ; initialize the stack pointer
            TXS
            CLI                       ; enable interrupts            
            lda   #%01000110          ; clock set up
            sta   ICSC1               ; FBI mode
            lda   #%00000000          ; CLKS bits = 01         
            sta   ICSC2               ; IREFS bit = 1.
            lda   #%00000000          ; BDM mode is active or LP bit = 0
            sta   ICSSC
            lda   #%11111111          ;set port B as output                    
            sta   PTBDD               
mainLoop:
            ; Insert your code here                 
            lda   #ZERO         
            sta   PTBD               ;turn on 7 segment            
            lda   #%00001111           
again       deca  
            cmpa  #%0
            bne   again
            lda   #%00000000
            sta   PTBD            
            feed_watchdog
            BRA    mainLoop
;**************************************************************
;* spurious - Spurious Interrupt Service Routine.             *
;*             (unwanted interrupt)                           *
;**************************************************************
spurious:                           ; placed here so that security value
            NOP                     ; does not change all the time.
            RTI
;**************************************************************
;*                 Interrupt Vectors                          *
;**************************************************************
            ORG   $FFFA
            DC.W  spurious          ;
            DC.W  spurious          ; SWI
            DC.W  _Startup          ; Reset
Message Edited by Learner on 
2008-01-08 06:00 PMMessage Edited by Learner on 
2008-01-08 06:00 PM