
214/317
7 - Debugger and PROM Programmer Tutorial for ST72251
AddrTasks:
DC.W Task1, Task2, Task3, Task4
; Table of pulse duration. Returns the result of the voltage to period
function.
TimingTable:
DC.B 100, 93, 87, 82, 77, 73, 69, 66
DC.B
63, 60, 57, 55, 53, 51, 49, 47
DC.B
46, 44, 43, 41, 40, 39, 38, 37
DC.B
36, 35, 34, 33, 32, 32, 31, 30
DC.B
30, 29, 28, 28, 27, 27, 26, 26
DC.B
25, 25, 24, 24, 23, 23, 23, 22
DC.B
22, 22, 21, 21, 21, 20, 20, 20
DC.B
19, 19, 19, 19, 18, 18, 18, 18
DC.B
17, 17, 17, 17, 16, 16, 16, 16
DC.B
16, 16, 15, 15, 15, 15, 15, 15
DC.B
14, 14, 14, 14, 14, 14, 13, 13
DC.B
13, 13, 13, 13, 13, 13, 12, 12
DC.B
12, 12, 12, 12, 12, 12, 12, 12
DC.B
11, 11, 11, 11, 11, 11, 11, 11
DC.B
11, 11, 11, 10, 10, 10, 10, 10
DC.B
10, 10, 10, 10, 10, 10, 10, 10
DC.B
09, 09, 09, 09, 09, 09, 09, 09
DC.B
09, 09, 09, 09, 09, 09, 09, 09
DC.B
09, 08, 08, 08, 08, 08, 08, 08
DC.B
08, 08, 08, 08, 08, 08, 08, 08
DC.B
08, 08, 08, 08, 08, 08, 08, 07
DC.B
07, 07, 07, 07, 07, 07, 07, 07
DC.B
07, 07, 07, 07, 07, 07, 07, 07
DC.B
07, 07, 07, 07, 07, 07, 07, 07
DC.B
07, 07, 07, 06, 06, 06, 06, 06
DC.B
06, 06, 06, 06, 06, 06, 06, 06
DC.B
06, 06, 06, 06, 06, 06, 06, 06
DC.B
06, 06, 06, 06, 06, 06, 06, 06
DC.B
05, 05, 05, 05, 05, 05, 05, 05
DC.B
05, 05, 05, 05, 05, 05, 05, 05
DC.B
05, 05, 05, 05, 05, 05, 05, 05
; Initialization
; ==============
reset:
ld A, #cpudiv2
; CPU clock prescaler
ld miscr, A
; CPU clock=4Mhz
ld A, #watch
; Load the watchdog
ld wdgr, A
ld A, #$FF
; Port A open drain
ld paddr, A
clr paor
ld padr, A
; leds off
ld A, #$40
; Initialize the timer
ld tacr1, A
; Enable interrupt
ld A, #8
; on compare
ld tacr2, A
; Prescaler 1/8
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...