Home
Taruna-1 User Manual - Pushkala Technologies
Contents
1. amp INT1 INTO SCL Figure 11 Port Expander Schematic KSDA Version 1 0 Pushkala Technologies Pvt Ltd 22 24 Taruna 1 User Manual VCC R2OUT R2IN R1OUT RAIN TAIN T1OUT T2IN T2OUT CONNECTOR DB9 EN gt SHDN MAX3222 2 SERIAL PORT PE O vec P3 2 T VCC TP1 bc O e DC JACK G ul T SICH galcie 2 VSO lt TP2 3 NaN 9 TP 8 wa z PE eres m LD9 RST erTP4 o P E ALES 9I P5 PSENY 0I P6 Figure 12 Power Supply and Communication Schematic Version 1 0 Pushkala Technologies Pvt Ltd 23 24 Contacts Technical Sales Generic Website Postal Address Version 1 0 Taruna 1 User Manual Support pushkala in sales pushkala in contactus pushkala in www pushkala in Pushkala Technologies Pvt Ltd No 38 SHREEKANTA West Anjaneya Temple Street Basavanagudi Bangalore 560004 Karnataka India Pushkala Technologies Pvt Ltd 24 24
2. 2 e Egli Communication OFF Figure 4 FLIP main screen Version 1 0 Pushkala Technologies Pvt Ltd 14 24 Taruna 1 User Manual 7 Select appropriate comport available on your Laptop PC and click Connect RS232 Setup Port COM v Baudrate 57600 v Manual Sync Connect Cancel Figure 5 Communication port selection pop up window 8 On successful connection you will see all the masked icons and information will be unmasked Now click Run icon to program the uC fo C Taruna ExampleCodes EDToggleMedtoggle ihx File Buffer Device Settings Help ho Et 9 Operations Flow FLASH Buffer Information AT89C51ID2 Signature Bytes bs pz EC EF Size 64KB V Erase Range 0x0 OxCD Device Boot Ids po po Checksum 0x52DF Hardware Byte BB C Osc BLIB x2 V Blank Check Reset Before Loading Bootloader Ver 1 2 0 F Program HEX File ledtoggle ihx BSB EB SBV bo FF FC 206 util bytes Security Level FF lt verify LevelO OLeveli Level 2 Select EEPROM Start Application C Reset COM 57600 Figure 6 FLIP ready for programming Version 1 0 Pushkala Technologies Pvt Ltd 15 24 Taruna 1 User Manual 9 After successful programming you may observe the Green color buttons next to the activities which were carried out during programming 10 Now click Start Application icon or press RESET key on board to launch the application fo C Ta
3. AT89C511D2 Atmel provides an easy to use GUI based programming utility called FLIP Current version of FLIP is distributed on the CD accompanying the development board To download the latest version log on to http www atmel com Installation is self explanatory Install one instance on your favorite OS and get ready to program Usage details will be discussed in the following section Version 1 0 Pushkala Technologies Pvt Ltd 11 24 Taruna 1 User Manual First Program on Taruna1 Developing a simple LED toggling code Step 1 Key in the following code in your favorite text editor and save as ledtoggle c File ledtoggle c Date 2029 06 20 0 Author Pushkala lt support pushkala in gt ss Deserijpicion This program toggles one Red LED on A Tarte gt il looaiecl Version OR 20 els ab eene 1 9 No modifications yet a Include SFR declarations header file finelude lt 8051 h gt finclude lt 8052 h gt finclude at89C5Ted2 h define MAX 30000 define FOREVER i allocate green LED 1 ON O OFF define LED pou define LED ON P2 0 1 define LED OFF EO 0 0 void softDelay unsigned long count vodel maim ate Clear Port 277 P2 Os is forever A vhile FOREVER Version 1 0 Pushkala Technologies Pvt Ltd 12 24 Taruna 1 User Manual softDelay 30000 Z LED ORT LED ON softDelay 30000 STRIS De L
4. ED OFF void softDelay unsigned long count unsigned long i count tor al Mae i gt Of i j Step 2 Compile the saved c file using sdcc command example shown below Prompt gt sdcc ledtoggle c On successful compilation you will observe many files created with name ledtoggle but with different file extensions File with ihx or hex extension is the one which should be downloaded on to the uC Next section describes about how to program the uC Tip Study the SDCC user manual to know more about various compilation options Version 1 0 Pushkala Technologies Pvt Ltd 13 24 Taruna 1 User Manual Downloading and testing 1 Open the FLIP utility make sure Taruna 1 is connected to your Laptop PC via the Null Modem cable Click on Select Target Device icon to select AT89C511D2 Click on Load HEX File icon to browse and select ledtoggle ihx file Power up the board using the supplied DC Power Adapter Take Taruna 1 to programming mode by following the below mentioned key press sequence on board a Press and hold the PSEN key SWA do not release the key b Now Press and release the RESET key SW1 c Release the PSEN key now 6 Establish communication between FLIP and Taruna 1 by clicking Select a Communication Medium icon Select RS232 p pe m fo C NTaruna1ExampleCodesM EDToggleMedtoggle ihx File Buffer Device Settings Help Operations Flow FLASH Buffer Information AT89C51ID
5. TM Pushkala Taruna 1 An 8051 Microcontroller Development Board User Manual Version 1 0 www pushkala in Pushkala Technologies Pvt Ltd 20 September 2010 Taruna 1 User Manual Copyright Information Pushkala Pushkala Technologies and Pushkala s Logo are registered trademarks of Pushkala Technologies Private Limited India All other brands and product names in this document may be registered trademarks or copyrighted information of their respective owners Disclaimer The information in this document is believed to be accurate in all respects at the time of publication but is subjected to change without notice Pushkala Technologies assumes no responsibility for errors and omissions and disclaims responsibility for any consequences resulting from the use of information included herein Additionally Pushkala Technologies assumes no responsibility for the functioning of undescribed features or parameters Pushkala Technologies reserves the right to make changes without further notice Pushkala Technologies makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Pushkala Technologies assume any liability arising out of the application or use of any product or circuit and specifically disclaims any and all liability including without limitation consequential or incidental damages Pushkala Technologies products are not designed intended or authori
6. WI SCL P3 7or RD 46 45 P3 6 or ZWR P3 5orT1 44 43 P3 4or TO P3 3 or INT1 42 41 P3 2 or INTO P3 10rTXD 40 39 P3 0 or RXD P1 7 or CEX4 or SPI MOSI 38 37 P1 6or CEX3 or SPI SCK P1 5 or CEX2 or SPI MISO 36 35 P1 4 or CEX1 P1 3 or CEX0 34 33 P1 20r ECI P1 1 or T2EX or SPI SS 32 31 P1 0 or T2 or KTALBI P2 7 or A15 or CS for CAN 30 29 P2 6 or A14 or LDAC for DAC P2 5 or A13 or CS for DAC 28 27 P2 4 or A12 or SSTRB for ADC P2 3 or A11 or CS for ADC 26 25 P2 20rA10 or RS for LCD P2 1 or A9 or RW for LCD 24 23 P2 0or A8 or Enable for LCD PO 70rAD7 22 21 P0 6 or ADG PO 5orAD5 20 19 PO 4 or AD4 P0 3 or AD3 18 17 P2 20rAD2 P0 1 or ADI 16 15 P0 0 or ADO No Connect 14 13 No Connect No Connect 12 11 No Connect VCC 10 9 GND P3 3 or HINT1 for RTC interrupt 8 7 GND P3 2 or INTO for RTC interrupt 6 5 GND TWI SCL for RTC 4 3 GND TWI SDA for RTC 2 1 GND For further details refer to the schematic of Taruna 1 Tip Refer to datasheet of AT89C51ID2 for more details on microcontroller pins and its functionality Version 1 0 Pushkala Technologies Pvt Ltd 20 24 Taruna 1 User Manual dd 4 n IlS0681V ES DE Sm 2ETYLX i 105 tdf vos N ddAYA 188 aas N3Sdyy nasa ewix rer eneme
7. ar to I2C I2C Inter Integrated Circuit Communication from NXP ADC Analog to Digital Conversion DAC Digital to Analog Conversion CAN Controller Area Network from BOSCH GPIO General Purpose Input Output PWM Pulse Width Modulation bps Bits per second Version 1 0 Pushkala Technologies Pvt Ltd 3 24 Taruna 1 User Manual Table of contents Taruna 1 E ed CNRC I T T 5 Introduction ES Taruna M 6 ldentilying what is om DOard NER 7 Basic Development SEU nee 9 SNe ag Slegs EP ie E E E E aa unas rer 10 SONO SAP uuu a O essent 11 Compr SDC ia 11 pownloadinog miiy PLIP uuu uuu asa eA 11 First Program on TACUMA IIIA anap aaa 12 Developing a simple LED toggling DODB a nece ie do need dd enei des 12 Downloading and co ao PER mU EEA ae 14 AGT uL M TM 17 VO Expansion Port DETGIUS amants miss tim 19 COI 21 4 qo AA AA S 24 Version 1 0 Pushkala Technologies Pvt Ltd 4 24 Taruna 1 User Manual Taruna 1 kit contents A standard packaged Taruna 1 kit consists of the following 1 Taruna 1 development board 2 Null modem cable 3 DC power adapter 4 User manual CD with other relevant documentation 5 Invoice of Purchase which is also a legal packing list 6 Any other peripheral modules ordered along with Taruna 1 Version 1 0 Pushkala Technologies Pvt Ltd 5 24 Taruna 1 U
8. e Figure 3 Setup of cross development environment Setting up development environment is very simple Plug in the supplied Null Modem Cable s one end to Taruna 1 s DB9 connector as described in previous section RS232 Connector and the other end to PC s serial com port To power up the board just plug in the DC power adapter s DC jack to DC input power jack on Taruna 1 and the 230V pins to the socket and power on Read through further sections to know about software required for cross development and a quick test scenario Warning Not all PCs or Laptops have serial port s built in Arrange a USB to Serial converter in that case Version 1 0 Pushkala Technologies Pvt Ltd 9 24 Taruna 1 User Manual Quick Check This section describes about how to test your Taruna 1 board on first power up 1 Connect the Taruna 1 as per the guidelines given in the previous section 2 Open Minicom in GNU Linux or Hyper Terminal in WindowsXP or similar serial QUEM communication utility of your choice Setup the serial communication utility with following parameters Baud Rate 9600bps Databits 8 Stop bits 1 Flow control None Power up the board You should see Taruna 1 Ready on your serial communication utility Now press key from 1 to 8 on your PC corresponding LED will switch on Press 0 to switch off the glowing LED This completes the test and now the setup is are ready to be explored If
9. h in some they are not utilized eo No short link b w Pin 1 amp 2 1 Short link b w Pin 1 amp 2 3 pin jumper with short link b w pin2 amp 3 Figure 8 Jumper connection schemes Jumper 1 JP1 Enable Disable Port 1 pull up resistors Each pin of Port 1 of AT89C511D2 is connected with a 390ohms pull up resistor Using JP1 one can enable or disable these pull resistors Standard Setting Disabled Short link between Pin 1 and 2 Enabled o No short link between Pin 1 and 2 Disabled Jumper 2 JP2 Select Program Memory AT89C51ID2 provides an option to interface external program memory addressable up to 64KB this option is selectable by asserting the EA pin to logic O Using JP2 one can switch between internal on chip program memory or external program memory Standard Setting Internal Program Memory Short link between Pin 1 and 2 Internal Memory Short link between Pin 2 and 3 External Memory Jumper 3 JP3 Enable Disable TWI pull up resistors The SDA and SCL lines of TWI interface has two pull up resistors connected to VCC through JP3 JP3 enables or disables these pull up resistors Standard Setting Disabled Short link between Pin 1 and 2 Enabled o No short link between Pin 1 and 2 Disabled Version 1 0 Pushkala Technologies Pvt Ltd 17 24 Taruna 1 User Manual Jumper 4 JP4 Enab
10. he pins of AT89C51ID2 are brought out on to two connecters called P1 and Port Expander Some of the pins are duplicated and grouped according to some common functionality to aid easy plug in of add on modules from Pushkala P1 and Port Expander are mapped 1 1 User can expand other compatible peripherals through these ports Information about add on modules available from Pushkala are published on www pushkala in Look at Figure 4 to understand the pin grouping and the following table describes about each pin functionality Figure 9 Pin or Functionality grouping of P1 and Port Expander Table describing functionality of each pin on P1 and Port Expander means active low Functionality Pin Pin Functionality VCC 80 79 GND SPI MISO for ADC or P1 5 78 77 GND SPI MOSI for ADC or P1 7 76 75 SPI SCK for ADC or P1 6 SSTRB for ADC or P2 4 74 73 GND CS for ADC or P2 3 72 71 GND No Connect 70 69 No Connect No Connect 68 67 No Connect VCC 66 65 GND SPI MOSI for DAC or P1 7 64 63 SPI SCK for DAC or P1 6 LDAC for DAC or P2 6 62 61 GND CS for DAC or P2 5 60 59 GND Version 1 0 Pushkala Technologies Pvt Ltd 19 24 Taruna 1 User Manual No Connect 58 57 No Connect No Connect 56 55 No Connect VCC 54 53 GND UC ALE 52 51 GND UC ZPSEN 50 49 GND TWI SDA 48 47 T
11. in any case you do not succeed with the above steps immediately contact support pushkala in and report the problem Make sure your email subject is specified as Taruna 1 lt serial number SN as specified on your board Note Once you reprogram download your code the board you can not run this test again This is factory programmed test code and will be erased once you program the board with your code Version 1 0 Pushkala Technologies Pvt Ltd 10 24 Taruna 1 User Manual Software Setup Compiler SDCC Small Device C Compiler SDCC is an Open Source C Cross Compiler used for compiling or generating binary executable files in Intel Hex format for the Taruna 1 board Current version of the same is supplied on the CD accompanying the development board To download the latest version log onto http sdcc sourceforge net Installation details are available in the SDCC user manual install accordingly on your favorite Operating System Tip There are many IDEs which support SDCC as an add on compiler to help development of 8051 programs You may explore one if interested Else a simple text editing tool and command prompt is sufficient to do the job Note Usage of a cross compiler or developing 8051 programs in C or assembly is beyond the scope of this document Refer to Useful Information of this document to get related information Downloading utility FLIP To download the executable on to the microcontroller in our case
12. le Disable LED array 8 LEDs are connected individual pins Port 2 of AT89C51ID2 Using JP4 one can enable or disable this array Standard Setting Enabled F Short link between Pin 1 and 2 Enabled No short link between Pin 1 and 2 Disabled Jumper 5 JP5 Enable Disable Sub Clock Crystal A 32 768KHz crystal is routed through JP5 to Port1 0 which is also crystal B input pin JP5 enables or disables this connectivity Standard Setting Enabled M Short link between Pin 1 and 2 Enabled No short link between Pin 1 and 2 Disabled Jumper 6 JP6 Enable Disable VCC to Taruna 1 VCC to complete board can be cut off using JP6 This jumper is in series with voltage regulator output and other Taruna 1 components Standard Setting Enabled Short link between Pin 1 and 2 Enabled No short link between Pin 1 and 2 Disabled Jumper 7 JP7 Select Operating Voltage VCC AT89C511D2 operates any where between 2 7VDC to 5 5VDC VCC Two standard operating voltages in this range are 3 3VDC and 5VDC Hence to support peripheral interface at these operating voltages JP7 can be used to switch between 5VDC and 3 3VDC Standard Setting 5V Short link between Pin 1 and 2 5V Short link between Pin 2 and 3 33V Version 1 0 Pushkala Technologies Pvt Ltd 18 24 Taruna 1 User Manual I O Expansion Port Details All t
13. ming Figure 1 Block diagram of Taruna 1 One can increase the capability of Taruna 1 through its external add on peripheral modules Currently ADC DAC RTC LCD Keyboard and CAN modules are available Version 1 0 Pushkala Technologies Pvt Ltd 6 24 Taruna 1 User Manual Identifying what is on board Figure 2 is the top side view of Taruna 1 and the accompanying legends identifies the main components on board CENTS 11 12 Figure 2 Top view of Taruna 1 Version 1 0 Pushkala Technologies Pvt Ltd 7 24 Taruna 1 User Manual Legend Description 1 DC input power jack 2 DB9 Male connector for RS232 serial communication 3 Various test points refer Trouble Shooting section for details 4 Power supply voltage regulator IC 5 Reset Switch 6 Power LED 7 Active low Interrupt O INTO switch 8 Jumper 7 JP7 9 Jumper 6 JP6 10 Jumper 3 JP3 11 Active low Interrupt 1 INT1 switch 12 Program Store Enable Switch PSEN 13 Primary clock crystal 22 1184MHz 14 AT89C51ID2 microcontroller 15 Jumper 5 JP5 16 LED array connected to Port 2 if Jumper 1 JP1 18 Jumper 4 JP4 19 Jumper 2 JP2 20 Sub clock crystal 32 768KHz 21 Port Expander pads 22 P1 I O Bus connector Version 1 0 Pushkala Technologies Pvt Ltd 8 24 Taruna 1 User Manual Basic Development Setup DC Power Adapter Null Modem cabl
14. rer eme DOHAI LIVLX es EI S dl S FI E d c 89 mi M m my MI pm OH E a h 4 KISON 9d gram erd eld Horde Hg Ed OG ld AS A E a LS adore COSI ES dd 0L rEd Xadid A IX39 LL NAR Ae Ie AAA LIN LLNI Ed 0x39 IMS A o DIN Z td 103 29 O 801L01001501r01801201 07 OX td KSS L__ sy A OXH 0 Ed 99 Nya Go Lav 104 5 KN WAD sav 904 77e 90V VAS EIVA N90 Fx e QHISS zIV2 rave lt 089 LY eav 504 y Kedy SH OLY za 204 Hy COV MWE ev iav Tos qui Ta ody 004 H o0v Schematic 21 24 IC car Microcontroller Schemat Pushkala Technologies Pvt Ltd Figure 10 Version 1 0 Taruna 1 User Manual lt MISO ScK SCRY amp MOSI LAi2 SSTRB RA11 CSDAC amp MOSI A14 LDAC amp A13 CSDAC ECIS XTALB A14 LDACS lt lt A15 CAN A12 SSTRBY amp A13 CSDAC A10 RSS Ait CSADC A8 ES INT INTO amp scL KSDA O 1uF PORTEXPANDER MISO SCK SCRY amp MOSI KA12_SSTRB KA11_CSDAC amp MOSI KA14_LDAC KA13 CSDAC gt XTALB1S A14 LDACS A12 SSTRBS A10 ASY AB ESS
15. runa ExampleCodesM EDToggleVedtoggle ihx File Buffer Device Settings Help PS ob Et Q Operations Flow FLASH Buffer Information AT89C51ID2 Signature Bytes 5s pz EC EF Size 64 RB o Erase Range 0x0 OxCD Device Boot Ids bo Do Checksum 0x52DF Hardware Byte BB Osc BLIB x2 V Blank Check Reset Before Loading Bootloader ver 1 2 0 o Program HEX File ledtoggle ihx BSB EB SBV Do FF FC 206 util bytes v verify AMEL Security Level FF G Level Leveli Level 2 i Select EEPROM Start Application Reset Verify PASS com 57600 Figure 7 FLIP screen depicting successful programing state of uC Note Do not alter any other parameter in the FLIP utility If attempted you may loose the programming ability of the device Tip Look out for other example codes in the CD or log on to www pushkala in Version 1 0 Pushkala Technologies Pvt Ltd 16 24 Taruna 1 User Manual Jumper settings There are seven Jumpers JP1 to JP7 to configure various settings of Taruna 1 This section gives you an insight about various settings using respective Jumpers These jumpers are either two pin or three pin variants In each jumper the pin with square pad is Pin 1 and other are in order 2 and 3 as shown in figure below The black thick line next to the pad pin represent the presence of a short link Short link is simple two pin conductive connector Short links are provided for all jumpers even thoug
16. ser Manual Introduction to Taruna 1 Taruna 1 is an 8051 development board designed around Atmel s AT89C511D2 high performance 8051 device variant It contains 64KB of on chip Flash and 2KB of internal RAM inclusive of standard internal and XRAM For non volatile data storage 2KB of on chip EEPROM is also available The device can operate up to a maximum clock frequency of 60MHz AT89C511D2 is a peripheral rich microcontroller which comes with UART SPI TWI Keyboard interface GPIO PWM and many other embedded on chip For further details on this device please refer to the datasheet of AT89C511D2 available at Atmel s website Taruna 1 can be considers as a Single Board Computer SBC for the reasons that the basic required functionality to develop a simple Embedded control system is readily available on board Eight on board LEDs help a developer in displaying debugging the status of code program Basic UART is brought out as a RS232 serial port for PC connectivity and In system Programming ISP All peripheral interfaces are brought out to an easily accessible 1 0 Port Expander Connector further section of this document explains these in detail For external peripheral compatibility the SBC can be powered at either 5VDC or 3 3VDC Following block diagram gives a glimpse of Taruna 1 s architecture 5V or 3 3V Up to 60MHz Power Supply Clock AT89C511D2 Programming amp Interrupts Port Expander GPIO ie SPI Ti
17. zed for use in applications intended to support or sustain life or for any other application in which the failure of the Pushkala Technologies product could create a situation where personal injury or death may occur Should Buyer purchase or use Pushkala Technologies products for any such unintended or unauthorized application buyer shall indemnify and hold Pushkala Technologies harmless against all claims and damages Contact information Pushkala Technologies Pvt Ltd No 38 SHREEKANTA West Anjaneya Temple Street Basavanagudi Bangalore 560004 Karnataka India Phone 91 80 4160 9003 email contactus pushkala in web www pushkala in Version 1 0 Pushkala Technologies Pvt Ltd 2 24 Taruna 1 User Manual About this manual This manual intends to discuss about the features and usage scenarios of Taruna 1 an 8051 microcontroller development board Audience Any person who wishes to use Taruna 1 Conventions used Courier New fontto represent code snippets and commands at prompt Tip Useful information related to topic of discussion Warning Less severity information Note Information which should be considered Acronyms used KB Kilo Bytes XRAM External Data Memory in form of RAM EEPROM Electrically Erasable Programmable Read Only Memory UART Universal Asynchronous Receiver Transmitter Serial Port SPI Serial Peripheral Interface TWI Two Wire Interface simil
Download Pdf Manuals
Related Search
Related Contents
ESET V6.0 スタートアップガイド Sony CDX-GT06 Instruction Manual Ariel AED-9054B Installation Guide WB 10-A Istruzioni d`uso e di montaggio Cappa aspirante Symantec Manhunt Smart Agent for Snort 2.0 Symplicity® Catheter Instructions For Use [EN] Symplicity® Katheter Kyocera KM-NET Printer User Manual Wエンジン、ついに 新しいステージへ Copyright © All rights reserved.
Failed to retrieve file