chiark / gitweb /
bugfixes
[trains.git] / cebpic / booster-output-low.asm
1
2
3
4         include         /usr/share/gputils/header/p18f458.inc
5
6         code
7
8 ; initialise booster direction
9         bcf     TRISC,0,0       ; make pin 0 (booster direction) output
10         bcf     PORTC,0,0       ; set low initially
11
12                 
13 ; set booster pwm high
14         bcf     TRISC,1,0       ; make pin 1 (booster pwm) output
15         bsf     PORTC,1,0       ; booster pwm high
16
17 loop
18         goto loop
19
20         end