chiark / gitweb /
move slavetable to variables.asm
[trains.git] / detpic / energy.asm
1 ;======================================================================
2
3 command_power
4 ;  C            1 iff command is ON             undefined
5
6 ;power_on ???
7 ; from cebpic/nmra-stream.asm's setup
8         bcf     PORTB,2,0       ; booster shutdown L
9         bcf     TRISB,2,0       ; booster shutdown not-Z
10
11         bcf     PORTB,0,0       ; user fault L or Z
12
13
14 master_interrupt_high
15 ; either booster timer interrupt or short circuit
16         panic   morse_UES       ; fixme check short circuit
17         call    nmra_interrupt_timer
18
19 trackpower_polarising