Datasheet
Aalap Tripathy, 2004P3PS208
PSOC Lab, BITS Pilani Goa Campus
41
• With more components added,
more files will be created.
21 Type the following code in
main.asm
; Assembly main line
include "m8c.inc" ; part specific constants and
macros
include "memory.inc" ; Constants & macros for SMM/LMM
and Compiler
include "PSoCAPI.inc" ; PSoC API definitions for all
User Modules
export _main
export flags, ticker, period
area bss (ram) ;inform assembler
of variables to follow
area text (ROM, REL)
_main:
M8C_EnableGInt
call Counter16_1_Start
call Counter8_1_Start
call Counter8_2_Start ;Turn on Ticker
call Counter8_2_EnableInt
mov a,3;bPowerSetting to HighPower Mode.
Refer Datasheet
call BPF2_1_Start
mov a,3;bPowerSetting to HighPower Mode.
Refer Datasheet
call BPF2_2_Start
mov a,3
call PGA_1_Start ;Turn on buffer
.terminate:
jmp .terminate
22. Build
23 Press Program Part on the right
24. Select MINIProg1 in Port and connect