Home
BIG 8051 - My E-town -- Personal Home Pages
Contents
1. gt DTE I v 2 D A D o DV 2 7y LN 7 e D E 1 6 9 de lo AJ o i USED FOR SELECTING VOLTAGE LEVEL DE APPLIED WHEN BUTTON 15 PRESSED 21 The BIG8051 has 10 pin connectors lined to the microcontroller I O ports Due to DIP switches S WI SWS every connector pin can be connected to one pull up pull down resistor It depends on the position of jumpers J1 J8 to control this aspect The pull up resistor ensures that the signal will be a valid logic level if external devices are connected A pull up resistor weakly pulls the voltage of the wire it is connected to towards its voltage source level when the other components on the line are inactive A pull down resistor works the same way but is con nected to ground It holds the logic signal near zero volts when no other device is connected C8051F040 3 Bn SW ON LDS LD58 LD58 E 1060 LD NNIKKOEEKTRONIKG nnum m C HHH 48 7 CHE HH S ____ SS 53333 Noo tttt de Dre
2. DinLe 51 acer IBIGSOSI b P MIRO CMON p sl 2 vem ID An 44 vvv s 20 I od HH HH IL j gt m POWER SUPPLY 5 d gt I 9999 9 20 6 E M exw A E E MELEE E M 2 Wd eee SPEM BIG 8051 TABLE OF CONTENTS Page No Ces ral MM MUERE 3 2 ICY Me gt _ _ __ _ _ ____ _ 6_ _66__64__ 6 _ 6 6 6 _6_ 6_6 _ ____ ___ _ __ 4 22 Connect TB 8 __ __ ___ _ _ _6_ __ ________ _ 5 S MEUS Metu _ ______ 6_8_ _ 656_ _ _ 6_6____ neon 6 POSTERS TMICTOCOMMONCE a de de Ode te on cn con 7 COR cases 8 ESI AA 9 CMD PATTES Pb a to bio 10 2 UART OU _ _ _____ ______ ___ _ _6_6_ _6 6_____ _ _6_6_ __ _ _6_ _____ _ 11 LUN SPEI c 12
3. The BIG8051 comes with Flash RAM and EEPROM memory modules This allows the microcontroller to expand its memory space The Flash module lets the microcontrol ler to use an additional 8Mbit flash memory via SPI To establish connec tion between the Flash module and the microcontroller switches 1 3 and 5 optionally 2 4 and 6 on the DIP switch 10 as well as switch 7 on the DIP switch SW15 to the ON position The RAM module enables the microcon troller to use an additional 64Kbit RAM memory via SPI To enable this connec tion between the module and the micro controller it is necessary to set switches 1 3 5 7 and 8 optionally 2 4 6 on the DIP switch SW10 to the ON position EEPROM module enables the microcon troller to use an additional 1 Kbit EEPROM memory via 12 serial con nection Set switches 3 and 5 optionally 4 and 6 on the DIP switch SWI2 to the ON position 19 77415 832 q C8051F040 a zi SPI SCK 8 SPI MISO ps Ip 2 SSS ST C8051F040 28 m E R19 1K RAM HOR DE VCC 3 3 VCCI I UE EEPROM SCL amp Ho EEPROM SDA SW12 m 3 3 Re C8051 F040 oie ps Dos PROM SCL C24 100nF There are a total of 64 LEDs on the development board and can be used to visually indicate the state o
4. 1 3 POP direct XCH A Rn ACH id direct Data Transfer Exchange Register wih A S B E Exchange low nibble of indirect with Boolean Manipulation ORL C bit Raama _ RET Rete fiam 1 5 1 5 AMPadiii A Aowemp O 2 3 LMPaddi flomgiump OOO 3 4 rer Sotjmp daeadiess ______ 2 3 3 3 Sz equas zero 2 35 remedium EE A direct rel BIG 8051 Manual 26 BIG 8051 Manual 27 Instructions by opcode lt lt ARABE 2 IS 2153 5 TPIBEPMBBBHBHEBHEHE alolsaixistizieizio x lt lt JNE CH OV C X acm DJNZ MIT ORL MOVC INC CPL SEIB ACALL ORL ANL PUSH CLR AJMP JBC e fon 0 ACALL 5 Eo MOVX AJMP MOVX MOVX ACALL 0 BO D eee Writing your first Program Download Silicon Laboratories IDE Follow the link for the download https www silabs com products mcu Pages 8 bit microcontroller software aspx Next d
5. 8 7 BlG8051 Board overview 1 BIG 8051 Manual 5 Connecting to power supply To power the development system on we have to provide power supply voltage over AC DC connector CN18 Before you turn the system on it is necessary to place jumper J11 the EXT position Next set the switch marked POWER SUPPLY to the ON position As soon as the development system now powers on a green LED labelled POWER will automatically illuminate Power Supply connector OFF ON 4x 1N4007 D7 T ACUC ESWC DRWC H OVOC 5V SWE B d ICT vini p ER POWER CN18 ier e IE R1 2 MBRS140T3 Power supply module connections schematic The BIG8051 system has a 100 microcontroller C8051F040 in TQFP package Today over fifty companies produce variations of the 8051 Several of these companies have over fifty variations of this sys tem To bring things into context over 100 million 8051 s sold Ino each year Our microcontroller appears to soldered on the MCU Seeos Meer LOUE card di P8 3 8D3 INT1 P3 3 1 P0 1 80 TXD P3 1 Originally 8051 belongs to the MCS 51 family of microcontrollers dis mas MCS 51 was developed by Intel but other manufacturers are second 5 RST sources of this family The MCS 51 now commonly referred to as the re 8051 is a Harvard architecture consisting of physically separate storage LA 15 2 7
6. t bui cT H 13 AA ________ __ _ _ _ _____ __ ____________ __ 14 DEMME EDT CORP __ _ _ 6__ 6__ _ ____ __ ________ _ __ _ 6______ ____ 15 COPA _______ 6___ __ _ __ _______ __ __ 16 ____ _ _ __ __ _ 4 _ 6 _6_6_6 _6 _ _ _ __ __ __ 17 X 18 27 ___ ______ 19 20 OO D 2 PRIME EN 21 SES RHR 22 SOS 23 22 WRC CUS et _ _____________________ 24 ES 25 SCO DV OD COU 27 DSC 28 BIG 8051 Manual 2 The BIG 8051 development system provides a development environment for programming and experimenting with 8051 microcontrollers Development System BIG8051 CD Product CD USB Cable 128x64 graphic LCD display 2x16 alphanumeric LCD display Piezo buzzer CAN ZigBee Power Supply over AC DC connector USB Cable SV DC Power Consum
7. signal pathways for instructions and data Today most processors oy implement such separate signal pathways for performance reasons The 4 1 MES original MCS 51 featured 8 bit ALU registers and data busses The A following table shows the features of the MCS 51 8051 e MCS 51 8051 tF VAN e 4K bytes internal ROM Pipelined instruction architecture E 128 bytes internal RAM executes 70 of instruction set in e Four 8 bit I O ports or 2 system clocks Microcontroller 8051F040 e Two 16 bit timers Up to 25 MIPS throughout with Serial interface 25MHz clock Dnnnnnapnpppannnnan nn ri e 64K external code memory 4352 bytes internal RAM space e 64kB Flash in system program e 64K external data memory mable 512 byte sectors space e BOSCH Controller Area Network e 210 bit addressable locations CAN 2 0B hardware SMBus I2C Compatible SPI and two UART serial ports available concurrently e Internal calibrated programmable oscillator 3 to 24 5 MHz etc C8051F040 CLOCK SANITY The microcontroller can be replaced with another one if desired but it is cu LM important to make sure that they are compatible with the pinouts 1 wire serial communication enables data to be transferred over one single com munication line while the process itself 1s under control of the master microcontroller The advantage of this communication 15 that only one microcontrol
8. 88 RARR mim 2 2 6 Der Gins i p3 23 2 4 P3 Vow 3r Jp aL l TII 1 841 1 Lait gt N uj UR 4 Pul zt Der 22 8051 Assembly Introduction A computer instruction is made up of an operation code op code followed by either Zero one or two bytes of operands The op code identifies the type of operation to be performed while the operands iden tify the source and destination of the data If the instruction 1s associated with more than one operand the format 1s always Instruction Destination Source DATA MEMORY RAM INTERNAL DATA ADDRESS SPACE OxFF Upper 128 R AM Special Function Registers 0x80 Indirect Addressing Direct Addressing Only Ox7F Direct and Indirect Addressing 70 72 78 7A 79 76 76 76 73 72 71 70 Lower 128 RAM Addressing 0x00 EHE __ fe 04 02 01 00 Bank 3 0 Default Register Bank for RO R7 SILICON LABS Bank 4 memory map of the C8051 if the lower data RAM area Addresses 0x00 through OXIF are banked registers RO R7 The active bank 1s controlled via bits in the Pro gram Status Word From the PSW we can conclude th
9. as part of a hydroponic garden Switches 1 2 and 3 on the board serve as stand ins for a trio of float sensors that will activate when the water level reaches a set height The first four LEDs on the board correspond to the four devices that the system needs to control LED 0 represents the input valve LED 1 represents an aerator that needs to run for 5 seconds each time a switch 16 flipped for the first time LEDs 3 and 4 represent the drain valve that will allow the water out 3 and a light that is required to be turned on while the bucket empties 4 Recall that as with the earlier exam ple programs logic 0 is required to light the LEDs so CLR 15 used to light them instead of SETB 3 main JNB initialize is a flag that is set when initialization has been run once SETB P1 1 ensure that the aerator is off JB P 3 drain 1 0 3 is set the bucket has finished filling and should begin to drain CLR P1 0 Begin filling the bucket JNB P2 3 Switch3 is the third switch tripped note that the last switch must be the first checked so as to not get stuck JNB P2 2 Switch2 Is the second switch tripped JNB P2 1 Switch1 Is the first switch tripped JMP main continuously loop Switch1 JB main If this function has been executed before return to main P0 0 set as flag that this function has been executed JMP aerate jump if this is the first time the switch read as pressed Switch2 JB P 1 main If th
10. 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dog 5 e Inthe middle window your main controls where you will be able to 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 write and execute your code Bon oo oo 00 0 000 0 0 0 00 00 06 The bottom window allows you to manipulate virtual inputs to the 8051 tcc taalealeataslostaolcatce A and see outputs on its various LCDs and LEDs Copyright 62005 2013 James Rogen Remove All Breakpoir e Ontheleft is a representation of what is stored in the memory and regis ters of your 8051 Note clear some of these requires closing and re opening the simulator Pa In black box on the right you ll find a reference for how to access vari ous hardware elements of the simulated 8051 such as switches and 1 led LEDs and whether currently sees a logic 1 or 0 CELL LE LL LL LL Coding the Simulator Run Load Save Copy Paste 1 Above the assembly code window you will see the toolbar depicted below Either select New to begin a new assembly or Load to import an existing one 2 Once a program has been written or loaded select either Assm or Run to execute it If the simulator identifies any errors in the code the program will not run and a message wi
11. Conhicurat oa COMPORT co M1 gt Hew 1 m ro 6 66 _ p The BaudRate 1115200 Teolbar Extended Styles Editor Font Check port status Configiratian 1 21 select Language USB Debug Adapter 1 9 1 0 rates hav to disable the watchdog Tirer Adapter Debug Window Font Salection 19 vrite to port 170 pin Selection 3002 2 Dizassembly View b File Backup Sctting Power target after disconnect i Connect Before Qaeniag Pregect seyigter delinitaiun Lile Debug Interface Pop V Flach en Dewnlsad JTAG _ Chain Configuration Smart Download 102 GRFRLS Show Aadi in Memory Windows pen Crear neni e a o l Reset Tecor e SS oe File Edit View Project Debug Tools Options amp zx Alt C SROKODS1 M Project All rights reserved BIG 8051 Manual 29 BIG 8051 Manual 30 Downloading and Running Code on 8051 e Click Download after connection has been established successfully e Then click the Go button as shown Observe results on board 7 Silic
12. It should always start with a 0 All the register should be assumed to be of 1 byte unless otherwise mentioned gt Now to transfer contents of to lets say the following code should do the trick MOV R6 R1 copy contents of R1 to T6 DIRECT ADDRESSING This mode allows you to specify the operand by giving its actual memory address Instruction Set Sum Description Arithmetic Operations Addregserioh OoOo 1 3 Emm HEN ADDC ADDC direct ADDC data SUBBA Rn 5 SUBB A SUBB 2 direct 11 increment indirect RAM DECRn Devmetrgse 3 3 DEC direct Decemendredbye 2 2 Decrement indirect RAM 3 2 INCDPTR mcemenDaaPomer 1 1 MULAB JMdipyAand 1 4 DIVAB DWdeAbyB 3 8 DA Decimal adjust 1 AND Register io ANL A direct AND direct byte to ANL A GRi indirec data AND immediate 10 A ANL direct A ORL Rn ORLA GR ORm mdRAMGR ORLA data 2 2 Rabie Rotate A through Carry SWAP Swap nibbles of A BIG 8051 Manual 25 Instruction Set Summary cont
13. N network are typically sensors ac tuators and other control devices The host processor decides what the received messages mean and what messages it wants to transmit Sensors actuators and control devices can be connected to the host processor CAN controller stores the receives serial bits from the bus until an entire message 1s available which can then be fetched by the host processer usually by the CAN controller triggering an interrupt For sending the host processor sends the transmit messages to a CAN con troller which transmits the bits serially onto the bus when the bus 15 free To establish connection between this module and the microcontroller it is necessary to set the switches and 2 on the DIP switch SWI2 to the ON position CAN module connector CAN module LhzH LM C8051F040 CAN module and microcontroller connection schematic 9 13 The BIG805 enables you to connect the ZigBee module that is used for wireless communication The module communicates with the mi crocontroller with the standard SPI protocols It 1s necessary to set switches 1 3 and 5 on the DIP switch SW10 as well as the switches 1 2 3 and 4 on the DIP switch SW15 to the ON position for function ality At the moment our boards do not have any RF module attached to it However the MRF24J40MA ZigBee module can be connected to the development system This module can b
14. Switch 8 on the switch SW15 is set to OFF at the moment To connect 051820 set pin P2 7 to ON 10 The USB UART module 15 used to connect the microcontrol ler to an external USB device To establish connection be tween the microcontroller and the USB UART module it 1s important to set switches 1 and 3 optionally 2 and 4 to the ON position The BIG8051 can also use this module to power itself To achieve this it 15 necessary to set the switch position of jumper J11 found on the power module from EXT to USB C8051F040 Lig ve nns Tes Aree EST voor ANO L VEC LISB Gti ac I T VEC USB ose Eld 38 e i vir 1 d FRY cho Pru FIM GHJE T BL LL cas wer SND 8 USBB FTZ23 RL 100nF Iiini ae Eunaom wires USB connector and microcontroller connection schematic 7 Connecting USB cable NNOO 414405 GSN SY 0351 USB UART module 11 The RS 232 modules allow the development system to communicate to external devices 1n compliance with the RS 232 standard The two RS modules in the BIG8051 can operate separately To connect switches and 3 optionally 2 and 4 on DIP switch SW11
15. User Manual I pM m bd 2 Y E PIEZO BUZZER Ame P Gmk FORT d 2 8 ao LE in m fu 3 06820 CONNECTOR J a i 1 1 1 1 i 1 waves PAAR c SERARAABS S P 3 oo IE TEM V IG WITH BACKAIGHT Hii Due _ md bet Sat et m s 215 23 Le LII gt 4 n 4 b 3 E 5 5 2 I M 2 pner ts S a cone t B BN gt gt 2 T d mJ 2 LUI uw 2 m E E LY e gt E m I 1 A 1 M 35 u a u n SSAA EL Er WG SUR 720 HNNAN E 7 L d L1 1 2 z SC gt gt 5 H
16. at the bit addressable memory located from 0x20 through Ox2F which provides 128 bits of bit addressable memory The upper portion is used general purpose RAM ad can be accessed by any addressing mode direct or indirect Special function registers SFRs have been added to the C8051 to that of the standard 8051 for enhanced peripherals Upper data memory and SFR memory share the same BIG 8051 Manual 23 address space but are accessed via different addressing modes direct vs indirect The SFR portion can be accessed via direct addressing only There are eight modes of addressing available on the C805 The different addressing modes determine how the operand byte mentioned earlier to be selected Register MOV A Direct MOV Indirect ADD A QRO Immediate Constant ADD A 80H Absolute AJMP within 2K The direct and indirect addressing modes are used to distinguish between the SFR space and data memory space BIG 8051 Manual 24 Register Addressing In CPU registers are used to store information temporarily That information can be in typically specified in hex format or by giving its abbreviated name It is also used for the form of bytes of data to be processed or some address pointing to a data to be SFR accesses fetched In 8051 there 15 only one data type 8 bits With an 8 bit data registers any data more than 8 bit should be divided into 8 bit chunks before being processed INDIRECT ADDRESSING The most widel
17. e used as an ideal solution for wireless sensor networks home automation building automation and consumer applications The features of this particular radio transceiver module are e 2 4 GHz IEEE 8 2 15 4 Transceiver module supports ZigBee MiWi protocols e Integrated PCB Antenna with simple four wire SPI interface to PIC microcontroller e Low current consumption C8051F040 MODULE OPTIONAL zu b HN E T 14 The development system 15 able to read memory cards due to the on board MMC SD connector The module uses microcontroller pins for serial com munication To connect this module it 1s necessary to set switches 1 3 and 5 optionally 2 4 and 6 on the DIP switch SW10 as well as switches 1 and 2 on the DIP switch SW14 to the ON position if 0 gt aw gt Le Le b AIC a 4 Nl MMC SD CARD 2 E e 5 2d C8051F040 TOUCHPANE CONTROLLER HHHH d 55 SRR ARERR AE AU LII OE The BIG8051 can compare voltage levels due to a comparator built into the microcontroller Voltage signals are supplied via potentiometers P5 a
18. f each microcontroller I O pin When active an LED indicates that a logic 1 1s present on that particular pin To enable LEDs to illuminate it 15 necessary to select the appropriate port using DIP switch SWO There are 8 available ports labelled PORTO through PORTZ SW9 21 x 4 j C8051F040 zm The provided push buttons on the development board can be used to change the logic state of all the microcontroller input pins Jumper J10 is used to determine the logic state to be supplied on the appropriate microcontroller pin by pressing a push button On the lower left side of the push buttons a RESET button can be found to reset the micro controller AGNO C8051F040 E Ch C ta PO 0 PD 3 71 PD 5 POE r Cs Le Le C P3 C gt S a IN gt 4 lo LT 2 2 Y Le N 9 2 o M gt Le IN TS lo Ic E Ic UA E vl 9 N A ct 4 N Ic
19. is function has been executed before return to main SETB P 1 set as flag that this function has been executed JMP aerate jump if this is the first time the switch read as pressed Switch3 JB P 2 main If this function has been executed before return to main SETB P 2 set as flag that this function has been executed SETB P 3 set to indicate that bucket is full JMP aerate jump if this is the first time the switch read as pressed aerate SETB P1 0 stop filling CLR P1 1 start aerator JMP delay jump to delay delay MOV R 20 set loop count to 20 JMP countdown jump to countdown countdown DEC RO Decrement RO DJNZ R countdown keep looping until hits 0 JMP main return to main drain CLR P1 2 open drain valve CLR P1 3 turn on light JNB P2 1 drain keep looping until the water drops below the first sensor SETB P1 2 close drain valve SETB P1 3 turn off light JMP initialize Reset the flags so the program can restart automatically initialize This functions sets flags to ensure certain functions are only run once aerate once per switch drain once CLR This will be set when the first sensor is tripped CLR 1 This will be set when the second sensor is tripped CLR P 2 This will be set when the third sensor is tripped CLR P 3 This will be set after the third switch is tripped to confirm that the bucket is full SETB Set to confirm that this function has been run once JMP mai
20. ler pin is used s ave devices have unique ID code which enables the master device to easily 1dentify all devices sharing the same communication bus Pinout 3 The C8051F040 microcontroller must be programmed using a USB DEBUG ADAPTER which 15 provided with the box It is always a good practice to make sure that the power is turned on the USB DEBUG ADAPTER is connected to the development system through the cable as shown CN23 ik M SILICON LABORATORIES USB DEBUG ADAPTER nM 22883 BEES JTAG programmer USB DEBUG ADAPTER J13 J14 JTAG b Connecting m CONNECTOR Connector for programmer The Ethernet module lets us access the LAN network via the connector RJ45 Using Serial Peripheral Interface this module can communicate with the microcontroller i ts TE PNE Ls m m Bros T SERIAL ETHERNET Ethernet module E FEE TELLE J 88 Ethernet module connection schematic 4 Connecting Ethernet cable Piezo buzzers are used for making beeps tones and alerts To use one pin has to be connected to the ground in schematic and the other pin to a square wave out from a timer or microcon troller For the loudest tones stay around 4KHz This buzzer gives the BIG8051 development system the ability
21. ll appear indicating where the problem originated Assm is used to manually step through the code and observe the individual steps Once it has been clicked the button will change to Step and must be pressed repeatedly to advance the program one line of code at a time e Run will run the program all the way to the end without stopping At any point the user may pause the program by clicking the button again 3 If you wish to stop the program from running entirely select RST This will end the program and allow you to make modifications or simply begin the program again 4 When finished you can save your code as a asm by clicking save which will allow you to import your work at a later time Sample Code 1 Asimple program to display binary values from 0 to 255 on the LEDs note since the simulator considers logic O to be lit for the LEDs the program must decrement instead of increment main DEC P1 decrement instead of increment because logic 0 lights the LEDs JMP main 2 A Program to mirror the 8 push buttons onto the corresponding LEDs main MOV P1 P2 move values on buttons into the LEDs JMP main BIG 8051 Manual 32 BIG 8051 Manual 33 Simulation Video Amir amp Buxton https youtu be x5dIODI726U BIG 8051 Manual 34 sample Project Cain amp Kelly Below 1s a fully functional program that may be run on the simulator The program is designed to control the water level in a bucket used
22. n return to main Disclaimer This manual was prepared strictly for academic use the information gath ered here have been collected via re search and aimed to guide any student to start using the BIG 8051 microcontrol ler the pictures of the development system were taken by Sajid Amir and should not be copied References e http www mikroe com downloads get 1460 big8051 manual v100 pdf http www silabs com Support 20Documents Software 8051 Instruction Set pdf e http www botskool com tutorials electronics 805 1 introduction 805 1 assembly language programming page 1 e http users etown edu w wunderjt Xilinx 20instructions pdf e http users etown edu w wunderjt Instructions 200n 2080251 20Microcontroller 20Board 20and 20Software 20 20SP11WEB2 htm BIG 8051 Manual 35
23. nd P6 To enable voltage signals set switches 5 and 6 on DIP switch SWIS to the ON position C8051F040 ri Li La zi H _ n A 16 The ADC module is used to convert an analog voltage level into the appropriate 12 bit digital value The analog voltage signal 1s supplied via screw terminals CHO CH2 and CH3 The ADC module is built in into the microcontroller The voltage supplied from the VREF pin is used as a voltage reference In order to use this voltage switch 8 on the DIP SW14 should be set to the ON position E CHO o CH2 B GND oc CHS CH1 ADC INPUT 17 The DAC module attached to the development system can be used to convert 12 bit digital values into appropriate analog voltage values The output analog voltage signals is delivered via screw terminals DACO and DACI Like the ADC module this module also uses the VREF pin on the microcontroller as a voltage reference To use this voltage switch 7 on DIP switch SW14 should be set to the ON posi tion CN13 DACO OUT IL CONTROLLER CN14 Fi DAC 1 OUT mu renon G vCC 3 30 DAC TM vine ru vouta VouTo oc DACO DAC OUTPUT GND 8051 040 18
24. on Laboratories IDE F04x Blinky asm File Edit View Project Debug Tools Options Window Help ie Download code Alt D LT Locate the re File Edit View Project Debug Jools Options Window Help J mauz u e xevwuoler ixi BIG 8051 Manual 31 How to set up the 8051 Simulator arte P Clock MHz 12 vL SBUF gt 1 Make sure you have Java installed you can download it at R O oxo http Java com en download index sp 0 00 0x00 oxoo 6 0 00 0 00 EXD 5 0 00 PSW x 2 Runthe installer you downloaded and make sure to uncheck installing the Ask mofo mo ref Toolbar Teo 0 00 IE 0x00 3 Download http www edsim51 com 805 1 simulator edsim5 di zip If the software has 8 000 pins bits TH1 TL1 Ri 0200 DPH 0x00 been updated since this writing the newer version can be downloaded at _ http www edsim5 1 com OxFF OxFE P2 8054 SP 0x07 xFF 4 Unzip the file Sr oad 5 Inside edsim51di folder run edsim51di jar Data Memory 0123456789ABCDEF 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00
25. ownload an assembler The recommended assembler 1s Keil uVision5 http www keil com c51 After both the installers are downloaded install the software and run the IDE first Then proceed to write your program in assembly language Assembling your Code After completing your code click the assemble button as shown Silicon Laboratories IDE F04x Blinky asm File Edit View Project Debug Tools Options Window Help Del 8 P z x Assemble Compile current file Ctrl F7 tha IMT f New Project Next you may be prompted to find an assembler Browse for the assembler Keil uV1 sion 5 installed earlier Click rebuild all as shown Er e File Edit View Project Debug Jools Options Window Help joe 1 TEF Project BIG 8051 Manual 28 Connecting the IDE with the Development Board Before establishing connection between the development board and the IDE power on the system as instructed earlier The jumpers J13 and J14 should be in the JTAG posi R ir tion e Click options and then select Connection Options from the drop down N BE 3 i JTAG C2 CONNECTOR USB UART e Inthe Collection Options Dialog Box select configuration as shown e Click Connect to establish connection Connection Options Serial Adapter 95232 Serial Adapter C2 step
26. ption 50mA with all modules off Dimensions 26 5 x 22 cm Weight 420g Full featured development system for 8051 Analog to digital conversion of voltage signal CAN communication module FEARS EIS Agel Eo IT DEVELOPMENT BOARD HW REV 1 01 BY MIKROELEKTRONIKA Back of BlG8051 development system Key Features OE xm 1 12 13 14 15 16 17 1 oO m Ethernet module 21 Jumper used to select push buttons logic state Piezo buzzer 22 Reset button 23 Connector for MMC SD cards Connector for temperature sensor Connector for programmer 24 3 1 1 USB UART module USB power supply 3 3 V voltage regulator connector 25 Power supply module RS 232B module 26 LEDs Connector for MCU card 27 CAN module RS232B module 28 ZigBee module Comparator 29 Connector for LCD display Jumpers used to select pull up pull down re sistors DIP switches used to turn on pull up pull down resistors ports A D converter inputs D A converter outputs Memory modules Touch panel controller Connector for GLCD display Connector for touch panel 19 20 Push buttons Jumper used to shorten protective resistor BIG 8051 Manual 4 OG 9 oe x Ed E E E I LIE ae
27. should be set to the ON position C39 Ci Cad a ALSO USED AS USB PWR SUPPLY CONN RS 232 module Lu m m c sd k pue 2 Ti CHT EN Cie 2 V 1 I Ri CRIT 11 EL a gt a __ EN NE C8051F040 ee ee AAAAAPA AA PAA ERATE SR ERE Ree n 2 d seo RB 232H F it wer RS 232 module connection schematic 8 Controller Area Network CAN is a communication standard primarily intended for use in the automotive industry It is used when microcontrollers and devices need to communicate with each other applications without a host computer The modern automobile may have as many as 70 electric control units for various subsystems Typically the biggest processor 1s the en gine control unit Others are used for transmission air bags ABS cruise control electric power steering audio systems power windows doors mirrors etc Some of these form independent subsystems but communica tions among others are essential A subsystem may need to control actuators or receive feedback from sensors The CAN standard was devised to fill this need Each CAN node 15 able to send and receive messages but not simultaneously The devices that are usually connected by a CA
28. to emit audio signals Best performance for our Piezo buzzer can be achieved with frequencies between 2KHz and 4KHz To make a connection between the piezo buzzer and microcontroller it is necessary to set switch 8 on the DIP switch 13 to the ON posi The figure currently shows it in off position PIEZO BUZZER Piezo buzzer R23 s BT LI EM zt _ h m m SE Piezo buzzer and connection schematic 5 Our BIG8051 development system comes with DS1820 temperature sensor that uses 1 wire communication as mentioned earlier It can be used to measure temperature in the range be tween 55 degrees Celsius to 125 degree Celsius with an accuracy of 0 5 degrees Celsius The sensor can convert temperature with 9 bit resolution and takes a maximum of 750ms The communication between this module and the microcontroller 15 achieved via pin P2 7 as shown in the diagram To establish a connection between them it is necessary to set switch 8 on the DIP switch SW15 to the ON position Vor 3 l Riz Bl C8051F040 125 C 55 C Evim DS1820 microcontroller connection schematic 6 TSI ws 9 DSIS20 DS1820 temperature sensor connected Make sure that the rounded side of the DS1820 matches the half circle on board
29. y used registers of 8051 are A accumulator RO R1 R2 R3 RA R5 In the indirect addressing mode a register is used to hold the effective address of the R7 DPTR data pointer PC program counter A register is used for all arithme operand This register which holds the address is called the pointer register and 15 tic and logic operations These registers are divided into two groups said to point to the operand Only registers RO R1 and DPTR can be used as pointer registers DPTR is useful in accessing operands which are in the external memory e General purpose registers e Special purpose registers The 8051 microcontroller instructions are divided among five functional groups The register addressing instruction involves information transfer between registers 1 Arithmetic 2 Logical Example 3 Data transfer 4 Boolean variable RO 5 Program branching 5 1 R2 3BH The first instruction above transfers accumulator content into register The register bank Bank 0 1 2 or 3 must be specified prior to this instruction signifies that it 15 a number and not a byte address H symbolizes that it is a hexadecimal number Similarly if we write a binary number it should end with B The 0 in the third instruction in OFFH symbolizes that is a hex number and not a letter This 1s always necessary if we are writing any hex numbers
Download Pdf Manuals
Related Search
Related Contents
ONKYO SERVICE MANUAL Index du manuel 1.1 Récapitulation des données de Toshiba Portégé Z930/01F Philips Avance Collection HD2698 BL-4009 Copyright © All rights reserved.
Failed to retrieve file