Tuesday, May 11, 2010

How to build AT89Sxx Base Board


This is my second design of the AT89Sxx Base Board. The board is based on the AT89S51, AT89S52, or AT89S53. This board uses STK200 for program loading and includes the serial port at the STK200 header. When I need to program the MCU and need a serial comunication, I do not need to plug and unplug the connector. Because I am using the USB to Serial ISP programmer. Then with the STK200, we must built the parallel programmer STK200. This parallel programmer STK200 can also be use for AVR programmer. This is the reason for the new design.

The complete schematic is shown below.





The PCB layout.



Download the PCB file using Express PCBAT89Sxx.PCB .

How to make PCB? Please visit this link http://www.riccibitti.com/pcb/pcb.htm . I recomended to use the 190mg glossy photo paper.

How to use this board.

1. Make parallel programmer STK200.
2. Download asm and C-compiler MIDE-51 http://www.opcube.com
3. Before program loading, you can test the code with the TopView Simulator. With this simulator you can learn how to interface the I/O devices, e.g. LED, Keypad, 4x4 keypad, LCD, and serial comunication.
4. Please visit http://www.mytutorialcafe.com for tutorial.
5. Download Asim's Loader at http://www.kmitl.ac.th/~kswichit/cheapcable/index.html

If you got questions please contact me at prahara_satria@yahoo.co.id

Skema AVR ATMega 8535/16/32Learning Kit

how to Build the AVR learning boards with I/O interfacing modules.

Skema AVR ATMega 8535/16/32Learning Kit
Mainboard Features

Pin compatible for 40-pin AVR Microcontrollers
Single sided PCB, header for 4 I/O ports, ISP port and RS-232 port
Built in +5V voltage regulator LM7805
Onboard In System Programmer header

Download the complete file here : kit_module.zip

The zip file contains all PCB boards, and the Atmel MCS-51 main board, RTC, Dallas Digital Thermometermodule.

Any question please contact: eyulnt@yahoo.com

Updated: 6 October 2009

Rangkaian AVR910 - AVR Programme schema

Easy-build programmer for AVR microcontrollers. The firmware is based on AVR910 application note by ATMEL. The programmer can be used with AVR Studio, AVR-Prog, AVRDUDE and AVR OSP.


INTRODUCTION

AVR910 is a very useful programmer. It can program almost complete range of AVR chips. The original version made by Klaus is here, http://www.mikrocontroller-projekte.de/Mikrocontroller/AVR-Prog/AVR-Programmer.html. The programmer uses ISP capability of AVR chips. AVR910 first appeared in AVR910 application note by ATMEL. It is one of the fastest programmers for AVR. We can use AVR PROG available in AVR Studio, AVR OSP or AVRDUDE for interfacing with this programmer. The programmer connects to PC using serial port. For the notebook PC, we can use the USB to serial converter.

HARDWARE

I have done some minor modifications in the original design by Mr. Klaus. Klaus's solution uses transistors for RS232 - TTL level conversion. I changed to MAX232. My experience with such transistor solutions is not good. This solution may not work for some computers. The MAX232 is a better solution. If your target board uses 3.3V, try the MAX3232 in place of MAX232. Second difference is the LED, Klaus's design uses bi-color LED, I found it difficult to get such LED so I changed to use two LEDs, RED for busy and Green for idle. Rest of the part is the same as Klaus's design. Here are the schematic (click on the image to enlarge the schematic), PCB layout files and component placement files.

SINGLE SIDED PCB LAYOUT FILES IN POST SCRIPT AND PDF FORMAT

BILL OF MATERIALS

You need to connect a straight serial cable between the programmer and serial port on PC. Connect your target board to this programmer with the help of 6 pin ISP connector marked SV1. It is recommended to have a 6 pin ISP header on target board for connecting with the programmer. Recommended ISP connector pin out on target board is given below. Connect the target board and programmer with straight cable i.e. Pin 1 to 1, Pin 2 to 2 and so on. Programmer board takes the power supply from target board so your target board needs to be powered up before you start programming. Leave the JRST jumper open.

CONNECTOR ON TARGET

SOFTWARE

The software has two parts. The first one is the FIRMWARE that you need to burn into the ATTINY2313 chip, and the second part is the PC software that used to send the object code to the programmer board.

FIRMWARE

For the 7.3728MHz XTAL frequency, with the baud rate of 115200 you can burn this hex file avr910_2313_v38b.hex into the 2313 chip.

If your XTAL is different frequency, or need to modify the baud rate, you can modify this assembly source file avr910_2313_v38b.asm and generate your own hex using a suitable assembler.

Please note that, the ATTINY2313 chip from the factory is configured to use internal oscillator. To use external crystal, we must set the fuse in your ATTINY2313.

PC SOFTWARE

You can use AVR PROG included in AVR Studio. However the AVR PROG works only with baud rates above 19200.

Alternatively you can use open source software like ATMEL AVR-OSP or AVRDUDE.

http://www.atmel.com/dyn/resources/prod_documents/AVR911.zip AVR OSP

http://savannah.nongnu.org/projects/avrdude/ AVRDUDE

Diagram RS-485 Data Acquisition Modules

RS-485 DAQ Modules and RS-485 Control Modules
RS-485 Analog Input with 8 input channels. Model I-7017 has eight differential inputs for voltage and current measurements. Download the I-7017 data sheet as a pdf file
DAQ Software
for 7000 series
units

New Free
EZ Data Logger



RS-485 Thermocouple Modules with eight input channels.
Model I-7018 8 differential analog inputs for voltage and 20 mA current measurements. Download the I-7018 data sheet as a pdf file Manuals for DAQ Modules

RS-485 Thermocouple Input Module with eight input channels
Model I-7019 8 differential analog inputs for voltage 20mA current and thermocouple measurements. Download the I-7019 data sheet as a pdf file

RS-485 Analog Output Module with two channels
Model I-7022 Two fully isolated analog voltage and current outputs for controlling industrial devices. Download the I-7022 data sheet as a pdf file

RS-485 Analog Output Module with four channels
Model I-7024 Four analog voltage and current outputs for controlling industrial devices. Download the I-7024 data sheet as a pdf file

RS-485 Digital Input Module with isolated channels is also a RS-485 Relay Module. Model I-7060 features four isolated digital inputs and four sets of relay contacts for control or signal switching applications. Download the I-7060 data sheet as a pdf file

Addressable RS-232 Converters

Scroll down to access the appropriate Converter. The product data sheets are acrobat pdf files. If you do not have an acrobat reader, click on the Get Acrobat to download a free copy of the reader from Adobe


Addressable RS-232 Converters


ICSDataCom is the US distributor of Technman products and stocks their Serial Converters.
Contact us to order. For information about these and other Technman products checkout their Products page.


Addressable RS-232 Converters


T-5258 See also
Addressable RS-485 to RS-232 Converters. Converts 2-wire RS-485 signals to RS-232 levels and also provides address recognition logic to add RS-232 devices to an RS-485 network. Address scheme compatible with ICS Serial Devices and many other network devices. Includes the 125061 AC/DC Power Adapter shown below. Download the T-5258 data sheet as a PDF file.
Manual
T_5258






T-5259
Addressable RS-422 to RS-232 Converters. Converts 4-wire RS-422 signals to RS-232 levels and also provides address recognition logic to add RS-232 devices to an RS-422 network. Address scheme compatible with ICS Serial Devices and many other network devices. Includes the 125061 AC/DC Power Adapter shown below. Download the T-5259 data sheet as a PDF file.
Manual
T_5259






Included Power Adapter
125061 AC/DC Power Adapter converts 115 VAC, 60 Hz power into 12 Vdc unregulated power. Nominal output is 100 mA.

RS-232 to RS-485 Converters & Signal Trackers schema

Click a link to select the type of converter you are interested in
Basic RS-232 Converters Isolated RS-232 Converters
Addressable RS-422/RS-485 to RS-232 Converters RS-232 Isolators

Need help selecting a converter? See our Converter Facts Section below


Use an RS-232 Signal Tracker to quickly solve RS-232 Connection Problems. Get $5.00 off with any Converter order. All powered converters include an 115 VAC power adapter.

ICSDataCom is the US distributor for Amplicon Liveline's products and stocks their Converters.
Contact us for additional information or to order other Amplicon products.


Basic RS-232 to RS-485 Converters

2089F / 2089M
Hi-Speed 25-Pin Converters. Converts single-ended RS-232 signals to differential RS-422/RS-485 signals up to 115.2 Kbs. Features plug-in terminal strip and DTE/DCE jumpers. Available with male or female connectors. Self-powered, no separate power adapter required. Download the 2085F/M data sheet.

2089F / 222N9F
9-Pin Converters. Converts single-ended RS-232 signals to differential RS-422/RS-485 signals. Model 2089F operates up to 115.2 kbaud; Model 22N9F operates up to 19.2 kbaud with 4-wire RS-422 signals. Features plug-in terminal strip and DTE/DCE jumpers. Self-powered, no separate power adapter required. Download the 2089/222N9F data sheet.

485HF25
Hi-Speed 25-Pin Converter. Converts single-ended RS-232 signals to differential RS-422/RS-485 signals up to 1 Mbs. Features plug-in terminal strip and DTE/DCE jumpers. Available with female DB-25 connector. Includes AC power adapter. Best for 4-wire applications. Download the 485H data sheet as a pdf file. Manuals
485HF25/485MF25
485HF9
Hi-Speed 9 -Pin Converters. Converts single-ended RS-232 signals to differential RS-422/RS-485 signals up to 1 Mbs. Features plug-in terminal strip, DTE/DCE jumpers and a 9-pin female connector. Includes AC power adapter. Best for 4-wire applications. Download the 485HF9 data sheet as a pdf file. Manual
485HF9
Magic 485 Converters




MAGIC Converters. Converts single-ended RS-232 signals to differential RS-422/RS-485 signals and automatically enables the transmitter. Provides trouble free 2-wire conversion. No program changes required.

Available with 9 or 25-pin female connectors. Includes AC power adapter. Download the MA485 data sheet as a pdf file. Manual
Magic485
232 Signal Tracker
232 Signal Tracker and Troubleshooter. Indispensable device for quickly solving RS-232 connection problems. Quick visual verification of signal connections saves may frustrating hours troubleshooting serial systems. The one test adapter you should have in every tool box. Down load the Tracker data sheet as a pdf file.

Included Power Adapter
125064 AC/DC Power Adapter converts 115 VAC 60 Hz power into unregulated 7.5 Vdc power with a nominal load of 100 mA. An 125064 is included with each 485HF series and Magic 485 Converters.

Converter Facts


1. All of our converters provide two pairs of RS-485 signals, a transmit pair and a receive pair.
2. All of our converters operate with two-wire and four-wire devices with easy connecting screw terminals.
3. RS-485 drivers and receivers also support RS-422 signals. RS-485 drivers support 32 loads, RS-422 drivers drive just 7 loads. They have the same signal levels. Use an RS-232 to RS-485 Converter when you need an RS-232 to RS-422 Converter.
4. All of our powered converters come with an AC power adapter.
5. Two-wire devices use one pair of wires for the transmit and receive signals. This means you have to switch the transmitter off when not transmitting to avoid blocking messages from the RS-485 device. Use the MAGIC 485 Converters as they have built-in logic for controlling the transmitter. The other converters use the RS-232 RTS Signal to control the transmitter. The RTS Signal has to be handled by the PC program.
6. RS232 has become the short hand way of searching for RS-232. RS232 to RS485 Converters is the same as RS-232 to RS-485 Converters, RS232 Isolators is the same as RS-232 isolators, and RS232 Signal Trackers is the same as RS-232 Signal Trackers.
7. Have ground loops or system noise problems? Go to the Isolated Converters page.

Isolated RS-232 to RS-485 Converters and RS-232 Isolators

Scroll down to view the Isolator or Converter. The product data sheets are acrobat pdf files. If you do not have an acrobat reader, click on the Get Acrobat image to download a free copy of the reader from Adobe

Use an RS-232 Tracker to solve RS-232 Connection Problems. Get $5.00 off with any Converter order.

RS-232 Isolators
232i series of RS-232 Isolators isolates two RS-232 Serial Devices with up to 2,500 volts of isolation. Self-powered unit plugs directly onto a 9-pin PC COM port. 9 and 25 pin versions now available. Download the 232i data sheet as a pdf file. Manuals
232i25
232i-9

Isolated RS-232 Converters
485fi series of Isolated RS-232 to RS-485 Converters converts single-ended RS-232 signals to isolated differential RS-422/RS-485 signals. Features plug-in terminal strip and DTE/DCE jumpers. Best for 4-wire applications. Available with 9-pin and 25-pin female connectors. Includes power supply module. Download the 485Fi data sheet as a pdf file. Manuals
485Fi
485F9i

RS-232 to RS-485 Converter Model I-7520 provides 3000 V of isolation on the RS-232 port. Includes a power supply module. Download the
I-7520 data sheet as a pdf file. Manuals for
I-7520 Series

RS-232 to RS-485 Converter Model I-7520R provides 3000 V of isolation on the RS-485 port. Includes a power supply module. Download the
I-7520R data sheet as a pdf file.


RS-232 to RS-422/RS-485 Converter Model
I-7520A provides 3000 V of isolation on the RS-232 port. Includes a power supply module. Download the I-7520A data sheet as a pdf file.