HomePACESearch
ProjectsForumsSite Map

Current:
Level Down:

Wiring your BX24


If you don't have the development board, then you'll have to wire your BX24 up your self. Don't worry, it's not very hard to do.

BX-24 Microcontroller
Diagram
Pin Description

Image courtesy of Netmedia Inc
Pin 01 TX - Pin 2 from DB9 Serial
Pin 02 RX - Pin 3 from DB9 Serial
Pin 03 DTR - Pin 4 form DB9 Serial
Only for programming.
Disconnect to disable programming.
Pin 04 GND - Pin 5 from DB9 Serial
Pin 05 General Purpose IO - PortC Bit 7
Pin 06 General Purpose IO - PortC Bit 6
Pin 07 General Purpose IO - PortC Bit 5
Pin 08 General Purpose IO - PortC Bit 4
Pin 09 General Purpose IO - PortC Bit 3
Pin 10 General Purpose IO - PortC Bit 2
Pin 11 General Purpose IO - PortC Bit 1
Pin 12 General Purpose IO - PortC Bit 0
Pin 13 GPIO PortA Bit 7 OR ADC Channel 7
Pin 14 GPIO PortA Bit 6 OR ADC Channel 6
Pin 15 GPIO PortA Bit 5 OR ADC Channel 5
Pin 16 GPIO PortA Bit 4 OR ADC Channel 4
Pin 17 GPIO PortA Bit 3 OR ADC Channel 3
Pin 18 GPIO PortA Bit 2 OR ADC Channel 2
Pin 19 GPIO PortA Bit 1 OR ADC Channel 1
Pin 20 GPIO PortA Bit 0 OR ADC Channel 0
Pin 21 5 VDC Regulated Power Input
Pin 22 Reset - Active LOW
Pin 23 GND - Common with Pin 4
Pin 24 5.7 - 15 VDC Unregulated Power Input
DO NOT USE - Leave Unconnected

The first thing to do is go get a 24 pin socket for your BX24. These pins are a little too big for the holes in a protoboard, and IF you get it inserted, you'll break pins off getting it out, plus you'll probably damage the contacts in the protoboard--and if you break a pin off, you'll probably cook something on the chip trying to solder it back on. Trust me, it's worth the 36 cents for a socket, plus, you'll have the socket if you solder this onto a PCB later.

As far as a serial port, if you're soldering this onto a PCB, the easiest thing to do is just get a DB9-Female solderable connector. If you're using a protoboard, you can either buy a serial cable, lop off one end of it, tin the wires and insert them into the protobard, OR buy a DB9-Make connector and housing, solder wires onto the pins, and plug them into the protobard. The second suggestion is probably easier because the wires in a serial cable are extrememly small.

Whatever you do, you have to remember that the pins are numbered backwards from when you are looking at a Male connector than when you are looking at a Female connector.

DB9 Pinouts
Female Connector

   5 4 3 2 1
 _____________
 \ o o o o o /
  \ o o o o /
   ---------
    9 8 7 6  
	
Male Connector

   1 2 3 4 5 
 _____________ 
 \ . . . . . / 
  \ . . . . / 
   --------- 
    6 7 8 9    
	
Sorry for the ASCII art

Also, the development board I have ties pins 6 and 7 or the serial connection together. Those pins are DSR and RTS, and has something to do with getting the UART on the host machine to send data. Also, don't forget to ground the housing of your connector if you are soldering it onto a PCB. Hook pins 2, 3, 4, and 5 from the serial port to pins 1, 2, 3, and 4 of the BX.

Connecting Power

As you can see from the BX24 pinout above, you have two options for power, but one of them is a bad idea. You can connect 5.7 up to 15 volts to pin 24, which is a regulator, and it puts out 5V (100mA MAX) to pin 21. The BX24 uses between 17mA and 25mA, so you are free to power other things from pin 21 if you like, BUT if you pull more than 100mA through the regulator, you'll burn it up and the whole chip stops working and you're out $50. Plus, the regulator isn't a very good regulator--the input has to be fairly well regulated to start with. You are better off just connecting a 5V regulated supply that can source at least 100mA to pin 21 (I'll put up a small, cheap powerline regulator circuit somewhere on this site if you are looking ot make something self contained).

You're done. Once you have the software installed, loadup an example program (preferable one of the LED demos) and upload it to the chip, but NOT BEFORE you read the notes about using your BX24. There is some stuff you NEED to know in there before you send any program to the chip.

This page created by: CJ Oster and Joe Ngai

Last Modified: April 28, 2003
Please contact Professor Gary Swenson (swenson1@uiuc.edu) to learn more about the course, or contact the webmaster (wiegert@uiuc.edu) with questions or comments about the web site.  Web Site designed by Purvesh Thakker.