Home

NMIN-2107 Single Board Computer

image

Contents

1. NMIN 2107 Single Board Computer User Manual V 2 NEW MICROS INC 1601 Chalk Hill Road Dallas Texas 75212 Tel 214 339 2204 NMIN 2107 Nov 21 2001 Table of Contents OVGIVIG We rd ets Mat 2 Included n ed 2 Getting Started 3 Memory 55355335555 4 Programming the 4 ONCE Connector and Parallel 4 Modified S Records and Serial 5 Transforming 5 5 Hooking Into Autoboot 6 On board Development 6 Connections and 6 GOLTIBORIGPIS a dea in Recta ura ed o e tue rate Da e Sogo Pedic e Pe Board Layout sce 2 esos ow See ARR ERES 8 Schematic 2224 DO is Me B da ed OO e 9 Examples attento E a a de Bane Apc 10 Reading from the 10 User Manual V 2 Nov 21 2001 Overview The NMIN 2107 single computer board provides you with plug and play access to the powerful 32 bit Motorola MMC2107 microcontroller The computer board provides power regulation RS232 and RS422 serial support and an LCD connector The
2. see if there is an application at location 0x4000 by checking for a vector anything but OXFFFFFFFF If there isn t then it copies the serial bootloader program from flash to RAM and then runs the program The serial bootloader program must run out of RAM to be able to program flash memory If you erase all of flash then the next time you reset the board there will be no programs present and you will have to program it through the ONCE port Otherwise if you download a program with a reset vector at location 0x00000000 such as the serial bootloader program then it will boot up next time You have the flexibility to keep the serial bootloader program as part of your end system or to remove it and replace it with another program Any s records that you do download to the board must be transformed by the perl script sikadown pl Quick Tip If you are using the serial boot loader to test out your application which starts with a vector at location 0x4000 then just use and f to download your application If you download an application reboot and nothing happens you can recover to the serial boot loader by shorting out to 43V on the J2 connector with a jumper or equivelant and pressing the reset button You will be taken back to the serial bootloader where you can erase your errant application and try again Transforming S Records To run the Perl script to transform your s records into the required format for the serial downl
3. power up before the flash gets power and down after the power cuts off from the flash to protect the flash from damage User Manual V 2 Nov 21 2001 7 Board Layout CPP eer 4244244 C E x pc Em Jp spre EEE k 7805 c n Sak J gt r5 YOTS N IAN 5 Nd SN A Es i 5Q32 INN MAM a pu lisa O r 179779 rae 918910 45910 21201 2 2107 0z gt 01 20 290 m 15 518450 Nov 21 2001 User Manual V 2 Ic Schemat 62 422 922 222170020810 620 820 20 622612 sal gt 9018 01 anro zizSLXL sejea Pi 4009F d a le 10L8Q 80WA J te suoyoedegssedigieuonppy 20 NVO0 Z08S jeuondo 82 085 Age Nov 21 2001 User Manual V 2 Examples These examples may be typed in interactively or cut and pasted into the terminal window if you are using MaxForth Otherwise they can be translated to the language that you are using to program the microcontroller with Reading from the A D port For this example we will consider the simplest way to get an A D reading get A D reading initialize A D re
4. 128K Application 0x0000 4000 boot loader 0 Programming the Board There are several ways in which to program the board 1 download an s record through the ONCE connector and the PC parallel port with CPROGMCZ 2 download a modified s record using the embedded bootloader and a serial port with HyperTerminal 3 interact directly with the microcontroller and download source code to the on board development system MaxForth through a serial port and HyperTerminal ONCE Connector and Parallel Port Using the MCORE Cable from P amp E Micro or equivalent plug it into the parallel port of your computer through a parallel port cable and the ONCE port on the computer board making sure to orientate the triangle on the pin header to pin 1 on the board which is marked by a square solder pad on the bottom of the board Apply power to the board When disconnecting from the board make sure it goes through a power cycle before you try out the downloaded software as a reset is not enough to regain control of the microcontroller after interacting with the ONCE port If you already have CPROGMCZ running click reset the chip If you start it up it will reset the chip and proceed to the next choice which is to read in a configuration file The file that works with the board is the MMC2107K_1 MCP file which should be in the directory for configuration files Next you will need to erase the module specify an s record to download and then program the module To t
5. est out the software you must disconnect the ONCE connector and power cycle the board The serial bootloader User Manual V 2 Nov 21 2001 4 file can be downloaded and then used to program the flash ROM using the serial port as described next Check the help screens for more details Modified S Records and Serial Port Using the serial bootloader you can download s records that have been created by a C compiler or assembler system that you have acquired separately to flash memory to be run The help menu invoked by typing a is p oU To download to flash 1 bulk erase if necessary 2 Make sure the delay time between lines is set to at least 75 ms 3 Type f 4 Send S record processed with perl Script sikadown pl as a text file Program flash Verify flash bulk erase all of the flash ood 1 erase application from flash When programming the flash with an s record the locations to be programmed should be erased to OxFF first by either erasing the whole flash or just all the sectors but the first one which contains the serial bootloader VP waRNING If you do bulk erase the entire flash with the b selection then the serial boot loader will be gone and you will not be able to reboot Your application should either put a vector at location 0000 or you should download the serial bootloader program sloader sp The serial bootloader works by running out of RAM At bootup the startup program in flash checks to
6. m Taking advantage of the interactive nature of the board s development system MaxForth you can interact directly with the microcontroller s peripherals by fetching and storing values to the configuration registers for the peripheral devices This is an effective way of understanding the peripheral documentation to verify correct initialization sequences running some tests on different configurations and debugging driver code as you develop it By typing in new definitions you can add new macros to the dictionary for interactive use or for creating an automated program Some examples are given later on Connections and Jumpers J1 LCD connector match the triangle on the connector with the pin with a square solder pad J2 J3 J4 are general purpose I O connectors including timers A D INT etc J5 RESET amp GND pin not installed It may be used as option for a front panel mounted reset switch J6 Misc signals J7 JTAG Once J8 includes jumper A B C The Jumpers A B C allow both RS 232 drivers for COM1 amp COM or 1 RS 232 and 1 RS 422 driver for either COM Jumper A allows RS 422 selection of either TxD1 or TxD2 of SCIO or SCI1 serial output signals respectively Jumper B is the serial input to SCI1 labeled RxD2 it is defaulted to RS 232 but can be jumpered the other way for RS 422 Next to Jumper B is 5V amp GND This can be used for a test point or external 5V source to power a probe Use a pa
7. microcontroller includes the following built in capabilities ma port 2107 EH Ed beh port C port D timer SCI MCORE 32 bit RISC low power integer processor 128K of block programmable 16K flash memory 8K of static RAM 8 channels of 10 bit A D with queueing 2 asynchronous serial channels 1 synchronous serial channel 8 timer channels with PWM capability up to 40 interrupts periodic interval timer watchdog timer 35 digital I O pins eight external interrupts ONCE debug support The computer board s power consumption with RS 422 drivers installed is about 80mA Included Files The following files are included and are available from our website The MaxForth file is only available if you have licensed it sloader s serial boot loader file in s record format that be downloaded through the ONCE port sloader sp serial bootloader file in modified s record format that can be downloaded through the serial port sikadown pl the Perl script used to modify s records for downloading through the serial port and the serial loader nmin2107 pdf this manual in PDF format mfcoreapp s MaxForth in s record format mfcoreapp sp MaxForth in modified s record format User Manual V 2 Nov 21 2001 2 Getting Started Computer Power Serial Cable You will interact with your board by connecting it to a PC using a serial cable and running a terminal prog
8. oader you will need to have Perl installed on your computer You can get a copy of perl for your Windows Linux or Solaris platform from http www activestate com Products ActivePerl download plex User Manual V 2 Nov 21 2001 5 To transform an s record you can type in the following commands in a DOS command window assuming that Perl is installed and the script is running in the current directory perl bin perl sikadown pl sloader s sloader sp The format of the command is Perl followed by the Perl script then by the s record file and finally by the name of the transformed output file W NOTE If you include different memory regions in your code make sure that your memory regions are 64 bytes or bigger as the perl script will mess up the translation from the S19 file to the massaged s19 file Compare the two if in doubt Hooking Into Autoboot You can autoboot your application by leaving a vector to it at location 0x4000 The startup boot loader will detect this vector and then jump to the location that the vector is pointing to When MaxForth is installed it has a vector at that location To get to the serial loader from MaxForth type in FLASH and enter To get back to the serial loader from an application execute the vector stored at location 0x190 in memory The application area 0x0 4000 0x1 FFFF can be erased using the serial loader without the boot loader being removed from memory On board Development Syste
9. per separator for protection Jumper C is the serial input to SCIO labeled RxD1 It is defaulted to RS 232 but can be jumpered for other way for RS 422 J9 Flash voltage supply Connects when flash needs to Erase Program Open when flash does not need to erase program or for Write protection J10 serial connection for SCI1 DB1 serial connection for SCIO J12 RS 232 shut down control input Drive high for normal operation Drive low to shut down the drivers This can be controlled by PA2 or jumper to 3V for normal operation default J13 RS 422 connector J14 Jumper to GND default for RS 422 receiver always or jumper to PA6 as RS 485 transmitter Receiver control signal J15 connects to pin 1 of RS 232 U2 This pin can be used to enable disable the receivers for the RS User Manual V 2 Nov 21 2001 6 232 interface For normal operation this pin must be low By default J15 is open and this pin is pulled down through 5 To disable the receivers J15 can be connected and controlled via PAO Set it high to disable and low to enable the receivers J16 is only needed when U2 the RS 232 chip is not installed and the LCD application required Do not connect J16 if U2 is present This can damage U2 Components SW1 reset switch RP1 10K resistor pot for LCD contrast adjustment U3 MAX4628 is the analog switch that provides the 5V to the flash VPP pin amp A D power source This allows the CPU to
10. quest channel 0 display eading This involves setting up the A D registers so it is ready to go requesting a read of a channel waiting for that channel to complete converting and finally reading and displaying the value Each of these boxes on the diagram will become a word except for Done HEX H h COUNT 100 SWAP OR DISPLAY READING CA0280 HO CHANNELO f 0010 Ce 80 AND CLEARO CHANNELO IF 0010 DUP C 80 NOT AND SWAP C THEN REQUESTO CLEARO 21 000 C INIT A D 2 0200 CO 0201 C 2 CA0202 FF 0203 C GETAD INIT A D REQUESTO BEGIN CHANNELO UNTIL DISPLAY READING The first reading is from 5 volts the second from 0 volts and the third from 3 3 volts all applied to pin PQBO on connector J4 GETAD 300 GETAD 21 GETAD 2A4 User Manual V 2 Nov 21 2001 10
11. ram such as HyperTerminal or an equivalent setup You need to set it to 19200 BAUD one stop bit no parity and 8 data bits Connect an RS232 serial cable between your PC s COM port and the serial port on the board To power up the board you need a 9 to 12 volt plug in transformer plugged into the power jack 1 AC DC both polarities accepted When everything is ready and you plug in the power you should receive a prompt in the terminal program MMC2107 Sika Flash Programmer or Max FORTH v5 on license agreement is required And when you depress the ENTER key it should also response with type for help or OK Max FORTH prompt WHen you see that message it means the communication is established and you are ready to interact with the board and microcontroller By pressing the reset button SW1 you should get the same boot prompt as when you powered it up Pressing the reset button will leave the contents of most of the RAM intact which might be useful for debugging purposes whereas if you power cycle the board then all RAM contents will be lost User Manual V 2 Nov 21 2001 3 Memory Map The memory map consists of the RAM ROM and registers The interrupt vectors can exist anywhere by setting the vector base register VBR OxFFFF FFFF External Memory n 0x8000 0000 0x00C0 0000 ports 0x0080 1FFF 0x0080 0000 RAM 8K serial loader 0x0001 FFFF a Internal MaxForth or Flash

Download Pdf Manuals

image

Related Search

Related Contents

      OWNER`S MANUAL - Cloudfront.net  Telfort Mobile Internet Software User Manual  InLine 76107Y networking cable  Pentax Optio X Digital Camera User Manual  SSLM6.8EN User Manual  

Copyright © All rights reserved.
Failed to retrieve file