Home
Crux Interfacing Solutions CRXi 122801 User's Manual
Contents
1. CRuX Logic 2001 all rights reserved 10 CRXi uCore Module External Chip Selects The CRXi comes standard with three active low chip selects These can be used for external hardware such as I O expanders keypad encoding LCD interface A D and D A converters to name a few Pins 51 53 on header J1 are chip selects 50 CS1 and CS2 These are each mapped to a 256 FFh byte address space beginning at address 8800h see Table 4 Reading or writing to these addresses will strobe the pin low to select the device This is a R W strobe the chip select pin will remain low as long as the read or write signal from the microcontroller remains low The lower eight bits of this address are available on the latched address byte pins 39 46 PAO PA7 Pins 21 28 are the multiplexed data bus ADO AD7 and pins 17 18 are WR and RD signals from the microcontroller Addresses 8BOOh BFFFh are reserved and should not be read or written to Additional chip selects may be available as well contact Crux Logic for details Chip Select Address Range Pin CSO 8800h 88FFh 51 CS1 8900h 89FFh 52 52 8A00h 8AFFh 53 Table 4 CSIOP Register Occupying upper data space from CO00h COFFh are the PSD configuration registers Only a few of these registers are needed for most applications Some should not be written to under any circumstances Writing to these registers may undermine th
2. All shipping and handling costs for are the responsibility of the customer Safe Handling As with any microcontroller and high speed digital products safe static free handling is mandatory Controlling static and spurious noise spikes is an obvious necessity in this environment but sometimes its easier said than done Crux Logic s products are built and tested in a static controlled environment and shipped in static safe containers Crux Logic recommends a static free workspace static mats and grounding straps are highly recommended Static discharge is a large cause of damaged parts Features As stated previously the CRXi module is a state of the art microcontroller engine It uses the latest 8051 architecture flash ROM and non volatile RAM no battery required Also on board is a serial bootloader The bootloader resides in a separate protected memory space and has no effect on the final memory map Dallas Semiconductor 80C320 high speed micro Executes 8051 instructions in 4 cycles as opposed to 12 Watchdog timer Dual data pointer 32K of non volatile RAM will store data with no power no battery needed 2048 bytes of additional scratchpad RAM volatile not available on all models Three 16 bit timer counters Two full duplex serial ports 128K flash ROM second 64K accessed via on chip page register Bootloader has no effect on memory map Three decoded active low chip selects Six general purpose memory mapped I O
3. Combination fourteen general purpose I O serial ports or 6 external interrupt sources Crystal and reset circuitry on board DOOOCOOOCODOOOOCOUOCALO Hardware Pin Descriptions Header J1 The header J1 is the 56 pin header running lengthwise along the board Hole diameter is 040 inches Pins are on 100 inch centers accepting a wide variety of connector types A few of the pins are marked with their pin numbers these are pins 1 and 37 which are the VCC pins and pins 20 and 56 which are the GROUND pins Many pins have multiple functions for example pin 2 can be used for either uController general purpose I O port 1 0 or timer2 counter input These are noted in the Table 1 U1 refers to the microcontroller U2 refers to the PSD Flash and U3 refers to the RAM memory chip Logic 2001 all rights reserved CRXi uCore Module PIN DESCRIPTION 1 VCC 5 VDC power input 2 P10 Ul port 1 0 general purpose I O or external I O for timer counter 2 3 P11 Ul port 1 1 general purpose I O or timer counter 2 capture reload trigger 4 P12 U1 port 1 2 general purpose I O or serial port 1 input 5 P13 Ul port 1 3 general purpose I O or serial port 1 output 6 P14 Ul port 1 4 general purpose I O or external interrupt 2 positive edge detect 7 P15 U1 port 1 5 general pur
4. CRXi and more on the memory mapping and external chip selects This manual is not intended as a tutorial on the 8051 microcontroller br PSD Flash architecture It is beyond the scope of this document The 8051 is covered in exhaustive detail from many sources including web sites books datasheets and magazine articles to name a few The same holds true for the ST Micro PSD flash device Crux Logic also does not support any toolsets assemblers compilers simulators or debuggers The end user is assumed to have detailed knowledge of the 8051 architecture and the software tools he she has chosen References used by Crux Logic in the design of this product are given at the end of this document The end user is urged to use these documents and data sheets in their design stage These are easily obtainable through the manufacturers web sites Disclaimer This manual has been checked for accuracy Crux Logic assumes no liability for damages incurred directly or indirectly from errors and or discrepancies between this manual and the CRXi Crux Logic assumes no liability for the use or misuse of this product in the end users application or the end users negligence or lack of knowledge in said application Crux Logic products are intended for use in small non critical control systems data acquisition automation and education purposes Crux Logic is not responsible or liable for any third party vendor product defects or discrepancies Crux
5. Sjal scie el RUN Logic Serial Bootloader lt c gt 2 i Version 01 01 01 Help text lt gt Flash page select for ROM functions lt P page i1 Erase selected ROM flash page XE Erase entire ROM flash fi Load Intel hex file lt L gt gt transfer file Dump selected ROM flash X start addr end addr 1 gt Run checksum of selected ROM flash 485 Dump RAM memory 6606h 8808 lt D start addr addr gt Dump internal 8851 RAM lt h lt I gt Write to RAM memory 8800 lt W value start addr end addr 1 gt Clear all RAM 88 B6h gt memory to lt Z gt Run checksum of NUSRAM 8888h 8 Bh gt lt C gt Run RAM memory test 88 B6h gt M Read register values lt R gt Execute user program address h lt G gt S ATIONTZ XM Dm Connected 0 05 50 100 19200 8 N 1 SCROLL CAPS NUM Capture Print echo Figure 5 All commands are single characters Some commands take parameters and these are shown in the text to the right of the character For example the W Write command takes 3 parameters The first is the value you want to write The second and third are the start address and end address Typing 0000 01 would fill data space NVSRAM in this case with the value OFCh 252 decimal into consecutive locations beginning at address 0000h end ending at O1FFh Any valid data sp
6. examining J3 This means the bootloader is using microcontroller resources internal RAM registers and peripherals even if jumper J3 is removed to allow user ROM code execution Therefor some registers and RAM will have data in them after a swap from bootloader to user ROM It is strongly urged that the user initialize internal RAM and registers to known values in the beginning of their code Logic 2001 all rights reserved CRXi uCore Module 7 Connections Because the end users hardware applications are all different no headers are soldered to the board These are inexpensive and easy to install This is not a cost saving measure we believe this provides for more connection options All header pins are on 100 centers with a 040 hole diameter This will satisfy a wide range of connector types Power Input Power is supplied to pins on header J1 A regulated 5 VDC 125 volts is recommended Apply 5 VDC at pin 1 or pin 37 Apply ground to pin 20 or pin 56 It does not matter which pin is used pins 1 and 37 are connected internally as well as pins 20 and 56 Power supply must be capable of delivering a minimum of 80 mA of current Additional circuitry using this supply will require additional current Resets Reset circuitry is present on the CRXi to facilitate hardware resets This consists of a microcontroller supervisor U4 that holds the microcontroller and PSD in a reset until voltage reaches a stable opera
7. selected memory page E Erases selected memory page If prompt shows 0 entering E will erase page 0 address 0000h FFFFh If page selected is 1 or 2 prompt 1 or 2 gt only the upper 32k bytes are erased in that selected page The only way to erase the common memory area addressed 0000h 7FFFh is to have page 0 selected See Figure 2 A Erase all Executing this command will erase the entire 128K Flash memory space L Load Intel format HEX file After executing the L command bootloader waits for the transfer of users code hex file The prompt will change to load HEX file See your terminal emulator program for transferring a text file There is no timeout period for receiving file If user wishes to abort transfer after executing 1 command CRXi must be reset After load is executed the load command returns certain values If successful load was performed CRXi returns a value of 0 displayed as LOAD ERR 0 See Table 6 for details Value Description Load successful Flash write algorithm error File checksum error End record checksum error 0 1 2 3 Write algorithm timeout error 4 3 Flash memory not erased Examine or dump selected flash ROM page code contents This command takes two parameters the starting address and the ending address See Figure 6 S Run checksum of selected flash ROM page D Dump external data memory This c
8. simple checksum which should return 0 R Read 8051 register values Read current contents of 8051 registers along with the page register Again to maintain backward compatibility the extended SFR registers of the 80C320 are not shown G Execute user program at code address 0000h The bootloader is swapped with the user code and the program counter is set to 0000h User code will execute seamlessly with the bootloader code having no effect on the users code However be advised that the booloader uses microcontroller resources as well and the swap will leave some special function registers SFR s and internal 8051 RAM with data It is suggested users provide some initialization routines to set data and SFR s to known values at the start of their code High Speed Microcontroller Data Book Dallas Semiconductor www dalsemi com STMicroelectronics formerly Waferscale pdf format manuals and app notes www psdst com gt Maxim integrated circuits data and app notes www maxim ic com Simtek nvSRAM Data Book www simtek com Keil Software www keil com Archimedes Software www archimedesoftware com Tera Term http softseek zdnet com Internet Telnet Review 13741 index html Logic 2001 all rights reserved
9. CRXi uCore Module Logic CRXi Manual For CRXi 122801 xxxxxxx 22611 xxxxxxx Revision 5031 1 CRuX Logic 2001 all rights reserved 2 uCore Module Logic 2001 all rights reserved CRXi uCore Module 3 Introduction Overview Thank you for your purchase of the CRXi core module The is a state of the art microcontroller engine used in small control and data acquisition products On this small form factor measuring 3 by 2 inches are the processor flash ROM non volatile RAM crystal reset circuitry and expansion connector This frees the design engineer of the many details of address data bus connections and decoding glue logic normally associated with layout of these components About this manual This manual will cover the CRXi module in 3 sections The first section Introduction describes briefly the features of the CRXi and very important disclaimer information The user buyer of this product is urged to read and fully understand the disclaimer and warranty section If there are any questions in this area user is urged to contact Crux Logic before using or purchasing this product The second section Hardware will cover in greater detail the inner workings of the board external chip selects memory expansion connector specifications and related topics The third section Programming the CRXi will cover how to program and use the internal bootloader special registers unique to the
10. Logic products are not intended or authorized for use as critical components in life support systems or in any systems where life or property or consequential damage are potential results of equipment failure Such systems are systems which are used to support or sustain life systems that are critical to property or equipment and whose failure could result in significant injury to the user and or hardware or equipment failure Use of this product in any form or application is the sole responsibility of the user buyer Design your application carefully Copyrights This manual is copyright by Crux Logic with all rights reserved Logic 2001 all rights reserved 4 CRXi uCore Module Trademarks Any brand and or product names mentioned herein are trademarks or registered trademarks of their respective holders Warranty Every effort has been made to insure a quality reliable product If any defects in materials are evident within a period of one year from the date of purchase Crux Logic will either at its option repair or replace products or individual components which are deemed defective If a product should fail after this period Crux Logic will repair or replace product at minimal cost If product is deemed unacceptable for users application for whatever reason within a period of one year Crux Logic will refund in full the entire amount of purchase less shipping and handling provided the item s are in working order
11. ace can be written to including chip selects and configuration registers CSIOP Note that jumper J3 must be in place for the bootloader to execute After a reset if no jumper is seen on J3 user code at address 0000h will execute If jumper is present the bootloader will poll the serial port for approximately 5 seconds If a keypress is detected within this time the bootloader will start If the timeout occurs bootloader is exited and user code is executed at address 0000h Users developing custom serial interface software can use the bootup transmission character to determine if the CRXi has been reset When the CRXi powers up or is reset the bootloader transmits a single tilde char out its serial port before beginning the polling sequence Users software could read this character and perform some action One possibility is upon receiving the tilde character writing out any character will be received by the CRXi and keep the part in bootloader mode Bootloader Command Set Detailed review of bootloader commands Displays help page See Figure 5 CRuX Logic 2001 all rights reserved 14 CRXi uCore Module P Sets memory page By default page is set to O This is indicated by the number preceding the prompt as in 0 After executing the command P1 page one is selected and displayed as 1 gt The selected page only has effect on certain commands such as E Erase L load X Examine code memory and S Run checksum of
12. cable If the connection was wired RXD to RXD and TXD to TXD use of a NULL serial cable would be required No special software is needed communication is established through a standard terminal emulator The default settings are 19200 bps 8 N 1 Consult Crux Logic for baud rates other than this default NVSRAM Memory The CRXi is furnished with a 32K byte non volatile 5 03 No battery is required data can be retained in RAM practically indefinitely Simtek claims 100 year data retention This makes the CRXi ideal for data logging and applications where configuration data must remain intact yet be changeable The Simtek STK15C88 is a fast SRAM with a nonvolatile EEPROM element incorporated in each memory cell Data transfer from the non volatile EEPROM to the SRAM occur automatically on powerup and transfer of the SRAM to the EEPROM occur automatically on powerdown This action is completely transparent to the user and will appear as a battery backed SRAM would In addition to the automatic store and recall operation there are software initiated store see Table 3 and recall operations Using the software store cycle can insure data is copied to the EEPROM element before powerdown Autostore on powerdown is limited to the following conditions The STK15C88 uses system capacitance to perform an automatic store on powerdown As long as the system power supply takes at least 10 mS to decay from 4 5 VDC to 3 6 VDC the SRAM will safely an
13. d automatically store the SRAM data into EEPROM on powerdown These conditions are usually easily met with a good power supply If user cannot guarantee this decay ramp the software store operation can be used The software store is initiated by executing sequential reads from six specific address locations These must be read in sequence and cannot be interrupted by any other read or write sequence or the autostore will be aborted Read address OE38h Read address 31C7h Read address 03EO0h Read address 3C1Fh Read address 303Fh Read address OFCOh Table 3 The last entry read of address OFCOh initiates the store operation To perform a recall operation the same sequence of addresses are read with the exception of the last entry The sixth read should be to address OC63h For detailed information on the Simtek NVSRAM refer to SIMTEKP data book The NVSRAM is mapped to the 32767 7FFFh contiguous data bytes in the 80C320 data space beginning at address 0000h see Figure 2 Additional Scratchpad RAM In certain CRXi modules an additional 2048 800h bytes of SRAM is available This memory is volatile and resides on the PSD flash U2 Its location in the memory map is immediately following the NVSRAM and is mapped from 8000h to 87FFh see Figure 2 In CRXi models without scatchpad RAM the address space 8000h to 87FFh is not mapped Reading or writing to this area will produce unwanted r
14. e integrity of the memory map address bus to NVSRAM and the bootloader These are noted below with a preceding the register name As noted any writes to registers involving Port A are not allowed as Port A is set up as the latched low order address bus for the NVSRAM and external peripherals via CSO CS2 Addresses above C100h are undefined and should not be read or written Register Name Address Description Additional Notes Data In Port A CO00h Reads port A pin as input Not available to user Port A used MCU I O input mode for latched low order address Data In Port B COO1h Reads port B pin as input 4 locations PBO PB3 pins 47 MCU I O input mode 50 are available as general I O The upper 4 PB4 PB7 are used for chip selects Data In Port C CO10h Reads port C pin as input Only PC2 pin 38 is available as MCU I O input mode general purpose I O Data In Port D COllh Reads port D pin as input Only PD1 PD2 pins 54 55 MCU I O input mode available as general purpose I O Control Port A C002h Select between I O mode or Do not change Set as address out address out mode mode for NVSRAM access Must read all ones FFh Control Port B CO03h Select between I O mode or PBO PB3 available as general address out mode purpose I O Data Out Port A C004h Writes data to Port A output Do not use Port A used for address out Data Ou
15. esults and should be avoided Flash ROM The heart of the CRXi module is the PDS Flash part PSD is an acronym for Programmable System Device and contains 2 flash memory regions and a simple PLD programmable logic device that handles all the glue logic such as memory latches and chip selects This is what gives the CRXi its versatility with such a low chip count Logic 2001 all rights reserved CRXi uCore Module 9 The flash area that contains the bootloader code consists of four 8K 2000h segments and occupies the 80C320 code space at reset It is automatically executed at reset regardless of the state of jumper J3 User has no access to this code space and it is write protected The bootloader s main function is downloading Intel hex format files users code erasing the flash reading and writing to memory and executing user code Other functions were incorporated into the boot code during development Upon receiving G go command from the bootloader or reading the state of jumper J3 on reset the bootloader code is disabled and is overlayed with the users code and execution will again begin at address 0000h 80C320 reset vector The main flash gives the user access to 128K of code space It consists of eight 16K 4000h segments Since the 80C320 and all 8051 derivatives can address only 64K of code a paging scheme is used to access the additional memory If the users code is within the 64K limit the page reg
16. f the drivers With a high level language such as C bitfields could make this type of port bit access almost trivial The drive select registers locations CO09h C016h and CO17h configures the pin driver as open drain or CMOS for some port pins and controls the slew rate for others A pin can be configured for open drain if its corresponding bit in the drive select register is set to a 1 The default is CMOS An external pullup resistor should be used on pins configured as open drain Slew rate is the measurement of rise and fall times of an output A higher slew rate means a faster response and may create more electrical noise A pin operates at a high slew rate when the corresponding bit in the drive select register is set to a 1 The default is slow slew rate Logic 2001 all rights reserved 12 uCore Module This is a brief summary of the configuration registers that reside in the CSIOP data space and how to use the basic I O functions of the PSD Flash part For more detail refer to the ST Microelectronics data sheet on the PSD913F2 Programming Overview Programming the CRXi part is performed through the boards serial port 0 Minimal isolation hardware is required as outlined in Figure 1 A standard terminal emulator is all that is needed such as Microsoft HyperTerminal or Tera Term The default serial port settings 19200 baud no parity 8 data bits 1 stop bit User will need an a
17. ister is of no concern to the user Flash segments 0 3 occupy the first 64K called page 0 and this is the default page There are two additional pages for a total of three pages page 0 page 1 page 2 Each page appears to have its own 64K space but notice the bottom 32K of each page is duplicated in each page This is referred to as the common area and allows all pages to access a common area of code as well as all the interrupt vectors cooo FS EET 8AFF cooo coo EA A cs iN 8900 FS4 2 NEN 2800 8000 8000 4000 0000 0000 PROGRAM SPACE DATASPACE Figure 2 CRXi memory map Switching between pages is done by writing to the page register location COEOh The lower 2 bits are written with 0 1 or 2 The default is page 0 no changes need be done if code occupies less than 64K bytes The user can use any paging scheme desired being aware of the issues of paging Many commercial compilers offer paging in their packages and is easily integrated This is sometimes done by linking a special file into users code to handle the page switching and other details Some modification of the paging code may be needed NOTE Care must be taken when writing to the page register The upper bits of the page register are reserved for internal use and must not be overwritten Some commercial compiler vendors may not protect unused bits in the page register all writes to this register should be done via a mask to protect these bits
18. ite to just one location use the same starting and ending address The write command can actually write to the entire 64K FFFFh of external data space Note that not all areas of memory are mapped and writing to undefined areas will yield unpredictable results Also the PLD configuration registers reside in upper memory and writing to these registers may produce unwanted results Z Zero all external data memory This command will clear all NVSRAM and additional scratchpad RAM if applicable between addresses 0000h and 8800h C Run checksum of NVSRAM 0000h through 7FFFh This command can be used to verify the non volatile storage capabilities of the CRXi module M Run memory test This test actually consists of four separate tests First a walking ones test is run to verify the data bus Upon success this test will return 0 if failure a non zero value Next an address bus test is run covering all power of two addresses A successful address bus test will return 0 failure will return the offending address The third test is a device test This tests that the every bit in the device is capable of holding both 0 and 1 and takes a bit longer to run than the other tests This test will return 0 on success or CRuX Logic 2001 all rights reserved 16 CRXi uCore Module the first address that contains an incorrect data value is returned This test will also set all locations to 0 upon a successful exit setting up the fourth test a
19. latched low order address byte 40 PA1 latched low order address byte 41 PA2 latched low order address byte 42 PA3 latched low order address byte 43 PA4 latched low order address byte 44 PAS latched low order address byte 45 PA6 latched low order address byte 46 PA7 latched low order address byte 47 PBO U2 general purpose I O optional CS3 active high chip select addresses 8BOOh 8BFFh 48 PB1 U2 general purpose I O optional CS4 active high chip select addresses 8COOh 8CFFh 49 PB2 U2 general purpose I O optional CS5 active low chip select addresses 8DOOh 8DFFh 50 PB3 U2 general purpose I O optional CS6 active low chip select addresses 8E00h 8EFFh 51 CSO active low external chip select addresses 8800h 88FFh 52 CS1 active low external chip select addresses 8900h 89FFh 53 CS2 active low external chip select addresses 8A00h 8AFFh Logic 2001 all rights reserved 6 CRXi uCore Module 54 PD1 U2 general purpose I O 55 PD2 U2 general purpose I O 56 GND Table 1 Pin Descriptions Header J2 Header J2 is the 14 pin header on the CRXi board It is used at the factory for initially programming and testing of the CRXi It gives direct JTAG access to the PLD section for chip decodes memory mapping scheme and other I O configuration The possibilities here are almost endless Crux Logic could not begi
20. ly Flash Protection COC2h Secondary Flash Protection Read only PMMRO COBOh Power management register 0 PMMR2 COB4h Power management register 2 Page COEOh Page register Write to only 010 and 1 upper bits of this register are reserved VM COE2h VM register Do not write to this register It is used to configure memory map Table 5 As an example assume the user wants to use PBO and PB1 as inputs and PB2 and PB3 as outputs We will need to set bits 2 and 3 to 1 bits 0 and 1 to 0 and not affect the upper nibble bits 4 7 This register resides at data location C007h The default is 0 so in this example we will assume the lower 4 bits are all 0 dptr 0C007h a a 0Ch dptr a address of port B direction register copy the contents of direction reg exclusive or with mask and put in A write it back to location CO07h Figure 3 Port B initialization example Now the user is free to write to bits PB2 and PB3 at location COO5h Data Out Port B register to set or clear these bits as application requires Also reads to input pins PBO and PBI at location COO1h Data In Port B register can be performed These external bytes are not bit addressable so masking is necessary when reading or writing to them The above code would constitute a driver in its simplest form In assembly language it could be suggested that the port drivers be put in macros to simplify the use of the ports and to hide the details o
21. n to support all the various memory maps chip selects and logic that is possible with this device We do not support or recommend the user access or program the part through this port although we wouldn t necessarily discourage it either With proper knowledge and the required hardware this is a valid means of exploring the versatility of this part PIN DESCRIPTION NC NC GND NC PC5 JTAG TDI PC3 JTAG TSTAT VCC DN MN BQ RESET 9 PCO JTAG TMS 10 GND 11 JTAG 12 GND 13 PC6 JTAG TDO 14 PC4 JTAG TERR Table 2 Pin Descriptions Header J3 Header J3 is a 2 pin header located immediately above header J2 J3 is a jumper block used to control access to the bootloader program With no shorting jumper across these points execution begins at ROM address 0000h user code following a reset With a shorting jumper installed across J3 the bootloader program is invoked on a system reset with this condition assuming serial port communications are properly connected the bootloader will poll the serial port for a period of approximately 5 seconds after reset If no character is received within this time period bootloader will exit and begin executing user code at ROM address 0000h NOTE Be advised that the bootloader is invoked after all resets regardless of the state of jumper J3 It is the bootloader that is
22. ommand takes two parameters the starting address and the ending address The selected flash ROM page has no effect on the output as this command displays only the externally mapped data content The NVSRAM is mapped from 0000h to 7FFFh The area above 8000h may be examined as well Addresses 8000h to 8800h are additional scratchpad RAM This scratchpad RAM may not be available in all CRXi models Not all addresses above 7FFFh are mapped so dumping memory in these areas may or may not yield predictable results See memory map Figure 2 for details Figure 6 shows a memory dump of NVSRAM contents 0000h through 00CCh Logic 2001 all rights reserved uCore Module 15 CRuX Logic COM1 oT File Edit Setup Control Window Help gt x 7FF 8883 FF E 75 7E 44 RB 2 AA 2889 29 gt pi x 7FF 8883 7 FF FF F2 25 Figure 6 Dump internal RAM contents No parameters are necessary A single I command will dump the entire 80h 128 decimal bytes of internal 8051 RAM To maintain backward compatibility with the 8051 only 128 bytes are dumped Note however that the 8032 which includes the Dallas 80C320 microcontroller has 256 bytes of internal memory for general purpose use W Write byte value to external memory Three parameters are used with this command The first is the value to fill to memory the second the starting address and the third the ending address To wr
23. pose I O or external interrupt 3 negative edge detect 8 P16 Ul port 1 6 general purpose I O or external interrupt 4 positive edge detect 9 P17 U1 port 1 7 general purpose I O or external interrupt 5 negative edge detect 10 NC 11 P30 Ul port 3 0 general purpose I O or serial port 0 input RXDO 12 P31 U1 port 3 1 general purpose I O or serial port 0 output TXDO 13 P32 Ul port 3 2 general purpose I O or external interrupt 0 14 P33 U1 port 3 3 general purpose I O or external interrupt 1 15 P43 U1 port 3 4 general purpose I O or timer 0 external input 16 P35 U1 port 3 5 general purpose I O or timer 1 external input 17 WR active low write line from U1 18 RD active low read line from Ul 19 RESET system reset a logic low on this pin resets U1 and U2 20 GND 21 ADO multiplexed address data bus 22 ADI multiplexed address data bus 23 AD2 multiplexed address data bus 24 AD3 multiplexed address data bus 25 AD4 multiplexed address data bus 26 AD5 multiplexed address data bus 27 AD6 multiplexed address data bus 28 AD7 multiplexed address data bus 29 A8 address bus high byte 30 A9 address bus high byte 3l 10 address bus high byte 32 A11 address bus high byte 33 12 address bus high byte 34 A13 address bus high byte 35 14 address bus high byte 36 15 address bus high byte 37 VCC 5 VDC power input 38 PC2 U2 general purpose I O 39 PAO
24. ssembler or compiler capable of generating Intel hex format files targeted for the 8051 series of microcontrollers The commands E A erase and L load hex file are mandatory commands needed for loading user programs in the CRXi module Other commands may or may not be needed some were used during the development of the CRXi module and they remain in the bootloader code Checksum and memory dump can be used to verify NVSRAM is backing up data write commands can be used to test peripherals and other commands can be used to verify proper operation of the CRXi module Establishing Communication When proper connections are made between PC and the CRXi the terminal is started and the CRXi can be powered up Immediately after powering up the CRXi press any key on PC keyboard to establish communications Terminal should show CRXi erminal BEE File Edit View Call Transfer Help De 515 cls 51 on Logic Serial Bootloader lt c gt 2 i Version 01 01 01 Connected 0 00 13 vri 00 19200 8 N 1 SCROLL CAPS NUM Capture Print echo Figure 4 CRuX Logic 2001 all rights reserved uCore Module 13 Note the prompt 0 The 0 indicates we are on the default page 0 At this prompt the command set of the bootloader can be run To see the available commands at any time type 2 A review of commands will follow CRXi HyperT erminal BE File Edit View Call Transfer Help Ole
25. t Port B CO05h Writes data to Port B output Write to Port pin if corresponding pin in Direction register is set to 1 Data Out Port C COI2h Writes data to Port C output PC2 is output pin if corresponding PC2 pin is set to 1 in Direction register Data Out Port D CO13h Writes data to Port D output Write to Port pin if corresponding pin in Direction register is set to 1 Direction Port A CO06h Configure Port A pin as input Do not change Set direction as Logic 2001 all rights reserved CRXi uCore Module 11 or output output mode for NVSRAM access Must read all ones FFh Direction Port B C007h Configure Port B pin as input O input 1 output Default is 0 or output input Drive Select Port A CO08h Set pin as either CMOS Do not change Port A reserved as open drain address out mode Drive Select Port B C009h Set pins 0 3 on Port B as 0 slow slew rate 1 fast slew slow or fast slew rate pins 4 rate Default is 0 slow 0 7 as open drain or CMOS CMOS 1 open drain Default is 0 CMOS Drive Select Port C CO16h Set pin as either CMOS or 0 CMOS 1 open drain Default open drain is 0 CMOS Drive Select Port D C017h Set as fast or slow slew rate 0 slow slew rate 1 fast slew Default is O slow slew rate Flash Protection COCOh Flash Protection Read on
26. ting level and a 74 14 schmitt trigger 75 to clean up reset edges and invert signals PSD is low reset microcontroller is a high reset Additional circuitry can be added by the user if needed Pin 19 on J1 is an active low reset input For development a normally open momentary switch could be added between pins 19 and 20 GND to facilitate resets Holding this line low for a minimum 150 uS resets all hardware Reset trip point is 4 625 VDC 125 VDC Serial Port Interface Communication with the CRXi module is accomplished through the microcontrollers serial port 0 pin 11 receive and pin 12 transmit on header J1 In order to establish connection with a PC an RS 232 line driver receiver is necessary This hardware is not present on the CRXi andis needed to change voltage levels to be compatible with the CRXi There are numerous IC s available consult the data sheet of the chosen device for wiring details and pinout Connections are shown in Figure 1 below Note the TXD transmit output from the micro connected via the RS 232 driver receiver to the receive DB 9 pin 2 of the PC and the RXD receive input to the micro connected to transmit DB 9 pin 3 of the PC R5 232 Dnver Receiver 12 TXD O Figure 1 Serial Port Connection CRuX Logic 2001 all rights reserved 8 uCore Module This diagram Figure 1 completes the requirement for a NULL connection and would require a straight non null serial
Download Pdf Manuals
Related Search
Related Contents
Philips Component video cable SWV3303W Lightolier LP-4 User's Manual Sony STR-DA777ES 6.1 Channels Receiver 取扱説明書 ご使用前に必ず、ご確認ください Yealink SIP IP Phones Change Log Anleitung - TANGENT Modelltechnik GPX C232B full size - Joel Mosher Website Uso e Manutenzione Bedienungsanleitung Sole-EWT Copyright © All rights reserved.
Failed to retrieve file