comparison src/ports.inc @ 623:c40025d8e750

3.03 beta released
author heinrichsweikamp
date Mon, 03 Jun 2019 14:01:48 +0200
parents ca4556fb60b9
children bf5fee575701
comparison
equal deleted inserted replaced
622:02d1386429a6 623:c40025d8e750
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File ports.inc V2.98b 3 ; File ports.inc combined next generation V3.0.4b
4 ; 4 ;
5 ; Portmap 5 ; Portmap
6 ; 6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
49 ; TRIS=b'00100000' 49 ; TRIS=b'00100000'
50 50
51 ; PORTE 51 ; PORTE
52 #DEFINE RE0_unused PORTE,0 ; unused 52 #DEFINE RE0_unused PORTE,0 ; unused
53 #DEFINE ir_power PORTE,1 ; power supply for IR 53 #DEFINE ir_power PORTE,1 ; power supply for IR
54 #DEFINE charge_disable PORTE,2 ; ex. mcp_ncs (RX /CS) (Available from hardware rev x.x only) 54 #DEFINE charge_disable PORTE,2 ; ex. mcp_ncs (RX /CS) (available from hardware rev x.x only)
55 #DEFINE LEDr PORTE,3 ; LED red 55 #DEFINE LEDr PORTE,3 ; LED red
56 #DEFINE power_sw2 PORTE,4 ; power supply for switch1 circuit 56 #DEFINE power_sw2 PORTE,4 ; power supply for switch1 circuit
57 #DEFINE RE5_unused PORTE,5 ; unused 57 #DEFINE RE5_unused PORTE,5 ; unused
58 #DEFINE lightsen_power PORTE,6 ; power supply for lightsensor 58 #DEFINE lightsen_power PORTE,6 ; power supply for lightsensor
59 #DEFINE flash_ncs PORTE,7 ; /CS 59 #DEFINE flash_ncs PORTE,7 ; /CS
60 ; TRIS=b'00000000' 60 ; TRIS=b'00000000'
61 #DEFINE charge_enable TRISE,2 ; tristating of charge_disable pin
61 62
62 ; PORTF 63 ; PORTF
63 ; RF1 (AN6, Batt_analog) and RF2 (AN7, Lightsensor) 64 ; PORTF,1 ; (AN6, Batt_analog)
65 ; PORTF,2 ; (AN7, Lightsensor)
64 ; TRIS=b'01111110' 66 ; TRIS=b'01111110'
65 #DEFINE NRTS PORTF,6 ; I 67 #DEFINE NRTS PORTF,6 ; I
66 #DEFINE NCTS PORTF,7 ; 0 68 #DEFINE NCTS PORTF,7 ; 0
67 69
68 ; PORTG 70 ; PORTG
69 #DEFINE TX3_PIEZO_CFG PORTG,0 71 #DEFINE TX3_PIEZO_CFG PORTG,0
70 #DEFINE RG1_blocked_by_RS232_2 PORTG,1 ; unused 72 #DEFINE RG1_blocked_by_RS232_2 PORTG,1 ; unused
71 #DEFINE tsop_rx PORTG,2 ; IR (RX2) 73 #DEFINE tsop_rx PORTG,2 ; IR (RX2)
72 ; RG3 (AN17, RSSI RX) 74 ; PORTG,3 ; (AN17, RSSI RX)
73 ; RG4 (32768Hz Clock out) 75 ; PORTG,4 ; (32768Hz Clock out)
74 #DEFINE RG5_unused PORTG,5 ; /MCLR 76 #DEFINE RG5_unused PORTG,5 ; /MCLR
75 #DEFINE RG6_unused PORTG,6 ; unavailable 77 #DEFINE RG6_unused PORTG,6 ; unavailable
76 #DEFINE RG7_unused PORTG,7 ; unavailable 78 #DEFINE RG7_unused PORTG,7 ; unavailable
77 ; TRIS=b'10001111' 79 ; TRIS=b'10001111'
78 80