Command Station RAM usage version 02

RangeContains
0x2000 - 0x20FFBuffers addressed in linear space. Others addressed by bank
0x2100 - 0x21FFWiFi TCP
0x2200 - 0x22FFWiFi TCP
0x2300 - 0x23EFReserved
Direct banks
Locationbank 0
2000-204F
bank 1
2050-209F
bank 2
20A0-20EF
bank 3
20F0-213F
Bank 12
23C0-23EF
18455PORT TRIS LATADCADC UART1MSSPCWG1 CWG2
20
L2E_buf (2000-2017) [0]
Messages
from EUSART1
to EUSART2
DCC_STATE
E2L_buf (20A0-20B7) [5]
Messages
from EUSART2
to EUSART1
buffer extension
For ESP-01 WiFi
total 64 bytes
DCC2 variables
Same order as DCC1
21DCC_SUBST
22DCC_ADDR
23
24DCC_MSG
command and up to 2 data
25
26
27DCC_AREG
28DCC_CKSM
29DCC_pr
previous timer value
2A
2BDCC_inot buffer indices
2C
DCC_buf
circular buffer of
pulse width measurements
2D
2E
2F
30
SO_buf (2060-2077) [3]
EUSART1 send only
D0,D1 6
B2 4
Linear
page 21
WiFi TCP
FREE
31
32
33
34
35
36
37
38SO_INp0 send from SIO_bufEO_INp0 send from ERX_buf
39SO_INp1 send from E2L_bufEO_INp1 send from L2E_buf
3ASO_INp2 send from SO_bufEO_INp2 send from ETX_buf
3BSO_otEO_ot
3CSO_limEO_lim
3DSI_inEI_in
3ESI_cksmEI_cksm
3FSI_sizeEI_size
40
SIO_buf (2020-203F) [1]
EUSART1 receive and reply
ERX_buf (20C0-20DF) [6]
EUSART2 receive and reply
41
42
43
44
45
46
47
48DGpw0H
49
4ADGpw0L
4B
4CDGpw1
4D
4E 
4F 
50
ETX_buf (2080-2097) [4]
EUSART2 send only
Unimplemented
51
52
53
54
55
56
57
58
59
5A
5B
5C
5D
5E
5F
60
DG_buf (2040-204F) [2]
DCC generator
outgoing
message
buffer extension (20E0-20FF)
For ESP-01 WiFi
total 64 bytes
61
62
63
64
65
66
67
68FM_FAL FRAM address lsb
69FM_FAH FRAM address Msb
6AFM_FAU FRAM address Usb
6BFM_RAL RAM address lsb
6CFM_RAH RAM address msb
6DFM_BC byte count
6E 
6Fser_cfg Available interfaces
Usageby domainaliased
70IH_t1
71IH_t2
72SV_t1
73SV_t2
74SV_t3FM_retry
75SV_t4FM_bit
76BG_t1
77FM_t1
78FM_shift
79m_stat
7Ares
7BDG_in
7CDG_ot
7DDG_state
7EDG_reg
7FEP_ctl