Difference between revisions of "8051 Development Board Setup"
Line 65: | Line 65: | ||
!RS || RW || EN || D0 || D1 || D2 || D3 || D4 || D5 || D6 || D7 | !RS || RW || EN || D0 || D1 || D2 || D3 || D4 || D5 || D6 || D7 | ||
|- | |- | ||
− | | | + | |P0_0 || P0_1 || P0_2 || P2_0 || P2_1 || P2_2 || P2_3 || P2_4 || P2_5 || P2_6 || P2_7 |
|} | |} | ||
<br> | <br> | ||
Line 77: | Line 77: | ||
!RS || RW || EN || D0 || D1 || D2 || D3 || D4 || D5 || D6 || D7 | !RS || RW || EN || D0 || D1 || D2 || D3 || D4 || D5 || D6 || D7 | ||
|- | |- | ||
− | | | + | |P0_0 || P0_1 || P0_2 || P_NC || P_NC || P_NC || P_NC || P2_4 || P2_5 || P2_6 || P2_7 |
|} | |} | ||
*P_NC: Pin Not Connected | *P_NC: Pin Not Connected | ||
Line 87: | Line 87: | ||
{| class="table table-striped table-hover table-condensed table-bordered" | {| class="table table-striped table-hover table-condensed table-bordered" | ||
|-class="info" | |-class="info" | ||
− | ! | + | !ADC DataBus(D0:D7)|| A || B || C || ALE || START || EOC || OE |
|- | |- | ||
− | | | + | |P2 || P1_0 || P1_1 || P1_2 || P1_3 || P1_3 || P1_4 || P1_5 || P1_6 |
|} | |} | ||
<br> | <br> | ||
Line 95: | Line 95: | ||
===RTC Test=== | ===RTC Test=== | ||
− | The DS1307 RTC | + | The DS1307 RTC pins are connected to P0 (SCL-P0.6,SDA-P0.7). |
[[File:8051 RTC Testing.png]]<br><br> | [[File:8051 RTC Testing.png]]<br><br> | ||
===EEprom Test=== | ===EEprom Test=== | ||
− | (A-Z) is written to EEPROM and then read it back. Same is transmitted on UART. | + | (A-Z) is written to EEPROM and then read it back. Same is transmitted on UART.<br> |
+ | The AT24cxx Eeprom pins are connected to P0 (SCL-P0.6,SDA-P0.7). | ||
[[File:8051 Eeprom Test.png]]<br><br> | [[File:8051 Eeprom Test.png]]<br><br> | ||
Line 122: | Line 123: | ||
!R1 || R2 || R3 || R4 || C1 || C2 || C3 || C4 | !R1 || R2 || R3 || R4 || C1 || C2 || C3 || C4 | ||
|- | |- | ||
− | | | + | |P2_0 || P2_1 || P2_2 || P2_3 || P2_4 || P2_5 || P2_6 || P2_7 |
|} | |} | ||
[[File:8051 Hex Keypad.png]]<br><br> | [[File:8051 Hex Keypad.png]]<br><br> |
Revision as of 12:34, 19 August 2016
The Explore Ultra 8051 Kit comes with all the things required, not just for this experiment but for the entire series. The base board is fully open, no peripheral is directly connected to the MCU breakout board. You may connect any peripheral to any port/pin you wish. The kit is fully open source, you may use the schematics, the design files and all of the source code and build something cool on your own. And when you do that do not forget to share with us what you've done. We would be happy to see you building something cool.
The story of the Ultra Kit does not end here, we have even made the code libraries for all major 8-bit microcontrollers modular. It means you can simple upgrade or even switch your project to a different microcontroller/architecture without changing your application code. The kit ships with all the additional stuff mentioned below to get you started; kickstart your embedded development. What are you waiting for?
Kit Contents: Explore ULTRA PIC Development Board with following Modules, ICs and Interfaces:
- USB Communication with CP2102
- Eight 5mm LEDs
- Eight Switches in DIP package
- LCD 16x2
- Four Seven Segment Displays
- ADC 0808 with 555 timer for sampling frequency
- POT for ADC
- Light Sensor(LDR).
- Temperature sensor(LM35).
- Two Relays for Switching AC devices.
- 4x4 Keypad.
- L293D Motor Driver for DC and Stepper Motors.
- DS1307 based Real Time Clock.
- AT2404 EEPROM.
- USB cable.
- Power Adapter
- Single wire female connectors.
Contents
Supported Controllers
Controller | Flashing Software | External Programmer | Comments |
---|---|---|---|
At89s52 | XploreFlash/ProgIsp | UsbAsp Programmer | IC is cheap and easily available but needs external programmer |
P89v519d2 | Flash Magic | Not required, uses on board USB | NXP has stopped manufacturing the IC and only the stock items are being sold. |
SST8951RD2 | Easy ISP | Not required, uses on board USB | IC is good but the programming software is not stable, doesn't save the configuration, needs manual reset and many other problems. |
w78e052d | Nuvoton ISP | Not required, uses on board USB | IC is cheap and good GUI for flasing the code. FLashing hex file takes less time compared to all |
Driver Installation
- Check this tutorial for Usb2Serial Driver Installation.
Software Setup
- Compiler Installation: Download and Install the MPlabx IDE and x8 compiler.
- Check this tutorial for setting up the project to generate the .hex file.
- Check this tutorial for Uploading Hex File Using Pickit2.
- Check this tutorial for Uploading Hex File Using Ds30 Bootloader.
Complete Board Test
The board is shipped with test software loaded in the controller. Connect the board to the System, Open the Serial Terminal and reset the Controller. Follow the below procedure to test all the peripherals.
GPIO Test
Connect the LED's, Buzzer and Relays to any of the port pins and observe the Led Blink, Buzzer-Beep, and Relay-Chattering .
*Note:The Rx,Tx pins will not blink as they are controlled by CP2102(Usb2Serial).
LCD 8-bit Test
Below table shows the LCD 8-bit pin connection.
RS | RW | EN | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
---|---|---|---|---|---|---|---|---|---|---|
P0_0 | P0_1 | P0_2 | P2_0 | P2_1 | P2_2 | P2_3 | P2_4 | P2_5 | P2_6 | P2_7 |
LCD 4-bit Test
Below table shows the LCD 4-bit pin connection.
RS | RW | EN | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
---|---|---|---|---|---|---|---|---|---|---|
P0_0 | P0_1 | P0_2 | P_NC | P_NC | P_NC | P_NC | P2_4 | P2_5 | P2_6 | P2_7 |
- P_NC: Pin Not Connected
Seven Segment Test
Below table shows the Seven Segment Connection.
ADC DataBus(D0:D7) | A | B | C | ALE | START | EOC | OE | |
---|---|---|---|---|---|---|---|---|
P2 | P1_0 | P1_1 | P1_2 | P1_3 | P1_3 | P1_4 | P1_5 | P1_6 |
RTC Test
The DS1307 RTC pins are connected to P0 (SCL-P0.6,SDA-P0.7).
EEprom Test
(A-Z) is written to EEPROM and then read it back. Same is transmitted on UART.
The AT24cxx Eeprom pins are connected to P0 (SCL-P0.6,SDA-P0.7).
Adc Test
Ultra Board has a Pot, LDR and a temperature sensor. ADC values from these sensors is read and transmitted on UART. Below table shows the sensor pin connection.
Sensor | Adc Channel | Port Pin |
---|---|---|
Temperature | AN0 | RA0 |
POT | AN1 | RA1 |
LDR | AN2 | RA2 |
Keypad Test
Below table shows the hex keypad Row-Col pin connection.
R1 | R2 | R3 | R4 | C1 | C2 | C3 | C4 |
---|---|---|---|---|---|---|---|
P2_0 | P2_1 | P2_2 | P2_3 | P2_4 | P2_5 | P2_6 | P2_7 |