RCA RMB-167 manual Bootstrapping, S0RIR

Page 27

8 BOOTSTRAPPING

The RMB-167 bootstrapping is triggered by grounding P0L.4 at reset. A 16 pin header is used to ground the bits of P0L via a resistor array with a nominal value in the range of 22K to 33K.

Note that the GAL which controls the bootstrap load operation is also responsible for turning on the LED. In its default implementation, the LED is lit once the RSTOUT# signal is activated. For specific applications, the user may alter the operation of the bootstrap logic by changing the GAL equations.

Once the bootstrap loader is invoked the serial port S0 is used to communicate with the C167. The host must first send a 0 byte with 8 data bits, 1 stop bit and no parity bits. The C167 responds with the byte A5h . Then the host expects 32 bytes of code to be downloaded to internal RAM starting at address 0FA40h and run.

Since 32 bytes is not enough to initialize and configure the C167 and then download a user program, a secondary loop is used. This loop is a short piece of code that is placed starting at address 0FA60h, so that when the 32 bytes of primary code are executed, the program continues with the secondary loop. The approach is described in more detail below.

The 32 bytes downloaded are, in hexadecimal,

E6 F0 60 FA

9A B7 FE 70

A4 00 B2 FE

7E B7

B4 00 B0 FE

86 F0 BB FC

3D F6

CC00 CC 00 CC 00 CC 00

which correspond to the following short code.

; origin is 0FA40h

mov

R0, #0fa60h

W0:

 

jnb

S0RIR, W0

movb

[R0], S0RBUF

bclr

S0RIR

movb

S0TBUF, [R0]

cmpi1

R0, #0fcbb ; read 604 bytes

jmpr

cc_NE, W0

nop

 

nop

 

nop

 

nop

 

-21-

Image 27
Contents USER’S Guide Page Page Warranty Table Of Contents 10.1.1 READS166 Evaluation Software Overview HardwareParts List Third Party Software Software Installation, READS166Software System RequirementsSerial Number Connections, Jumper SettingsSTART-UP Software InitializationBootstrapping A D S C O M M a N D S Verifying that the Monitor is LoadedPC set-up TroubleshootingHardware Set-up Software Set-upJumper Selection PowerOperating Notes Serial portAlternate Memory Map with Eprom in Low Memory Memory OptionsRAM Memory Options Eprom Memory OptionsEprom CFG1 Moving RMON167 to EpromRstisr Syscon is 89h on the 167 dw 089E6h Dw 0F800h Nop Mov Default GAL Equations GAL Equations1 U1 Equations Alternate GAL Equations U2 Equations1 U1 Equations For Eprom In Low Memory 2 U2 Equations For Eprom In Low Memory Equations System and I / O Headers JP6 System Header SignalPins Signal Headers and Jumpers166 JP2 JP7 JP7 Input/Output Header SignalJP8 Extra Input/Output Header of the RMB-167 Signal PinsSignal RMB-167 Analog-to-Digital Converter Reference Jumpers S0RIR BootstrappingDiswdt Einit Mov R1, #0A55Ah Minimal Monitor Help Port ConfigurationMON167 Monitor Download HEX fileWord Memory Port DataREADS166 V3.00 Concepts READS166 VersionExecutable Projects Archive ProjectsModule Circuit Diagrams