Help in Assembling AVR C51 MCU KIT

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

 

I have just bought a new AVR board and I need to assemble it - I could NOT find any where how to do this and I have difficulties with the resistors and capacitors.

This is the AVR Board that I have (leds are RED,YELLOW and GREEN) .

AVR Board
 

Please assist me wirth the electronics and where I should put the ressistors and capacitors:

I tested them and I have 10K 2 pcs, 1k 2k and 27ohm.

Please assist ASAP.

 

Thank You.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The color bands are not very clear in the picture

but I think the 2k is next to the trimmer pot, 1k

is next to the ZIF socket handle, 27 is at the very

bottom of the picture, and the two 10k are by the

button.

 

--Mike

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I need to assemble it

Have you asked for help form where you bought it from? Do they give you a diagram or even an assembly guide?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I suggest contacting the seller.

There are some more things that can be mounted wrongly and make your board useless.

They should be able to either give you a clearer picture of what goes were, but in the end they should have delivered assembly instructions or gave a location were to find them.

a quick lookup on avr C51 gives that there are at least 2 boards, there might be more with subtle changes such as rotated leds or resistor banks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

aryeduino wrote:

Please assist me wirth the electronics and where I should put the ressistors and capacitors:

I tested them and I have 10K 2 pcs, 1k 2k and 27ohm.

 

Ask the supplier for a schematic diagram, and failing that, try to find a zoomable image on ebay listings, that let you match resistor bands.

This listing seems to have bare board images,  but they forgot to write the part values on the PCB ?!

https://www.aliexpress.com/item/32559019359.html?productId=32559019359&productSubject=C51-AVR-MCU-development-board-DIY-learning-board-kit-Parts-and-components

 

Looks like R3 is a pullup on an Infrared receiver, so board should work initially with that not fitted.

R1602 looks to connect GND to a pin header pin, and nothing else ?

R2 seems to drive the LED next to RST, Could be 1k or 2k, not 27R or 10k

R1 & R5 are likely related to the reset, with C1

 

Google finds a 2xR 1xC reset circuit here, the series R in the SW loop protects the sw contacts and reduces inrush current.

http://naveenauvusali.blogspot.com/p/basic-circuit.html

but the PCB seems to route the sw direct across the cap, and R5 seems related to the AVR jumper.  - however, C51's need a positive RESET and AVR's need a LOW reset. 

 

Do you have a MCU in mind for this ? Needs to be an 8051 with bootloader (AT89LP51RB2 etc - I notice Digikey has low price on DIP AT89LP51RB2-20PU ),

or a 8051 pin-compatible AVR (Mega162, 90S8515 ?)- see this thread  https://www.avrfreaks.net/forum/c51avr-mcu-setup

 

 

Last Edited: Fri. Apr 26, 2019 - 06:15 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you all so much for your help.

Before I move forward and see how to assemble it correctly, I should mention that the Seller did not reply on my request for the diagram yet and I have been waiting for long time.

Here is a better ZOOMABLE image that i would be happy if you could assist me with the values of the resistors there:

https://i.ebayimg.com/images/g/6DwAAOSwwE5WU~9h/s-l1600.jpg

Hope this image with ONLY 5 resistors to value See below LARG image - Thank you (Resistors number 1 to 5) THANK YOU ALL!!!!!!!!!

AVR Board 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This listing seems to have bare board images,  but they forgot to write the part values on the PCB ?!

Yes, I have exactly this PCB and I have NO values at all on it. Beside the resistors and capacitors all the others looks to be easy (I Hope).

I have already contacted Seller with no reply - Now I have tried a different seller that have the same board and hope they will reply.. It has been a long time since I have this AVR Board and yet not been assembled.

 

Do you have a MCU in mind for this ? Needs to be an 8051 with bootloader (AT89LP51RB2 etc - I notice Digikey has low price on DIP AT89LP51RB2-20PU ),

or a 8051 pin-compatible AVR (Mega162, 90S8515 ?)- see this thread  https://www.avrfreaks.net/forum/c51avr-mcu-setu

Thanks for the info and assistance - I have already have STC89C52RC and AT89S52-24PU at hand and also on the way AT89C52,AT89C51 and AT89S51.

I have just started with it and I got the MCU that were mentioned on the page of which it supports.

Not sure if the board (when finally assembled) will support other boards then the one mentioned on the page.

If any of you have any suggestions to work with another MCU that I have not mentioned and knowing the it will be supported with the 8051 pin-compatible AVR Board that I have to build, I would be happy to know.

Also what software to use to develop and upload ( I now use for uploading HEX to the STC - stc-isp and for AT PROGIsp with USBASP - Development I am thinking to do with Keil ARM).

 

Please assist with the above and the assembly of the board.

Thank You!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

aryeduino wrote:

Please assist with the above and the assembly of the board.

I would suggest assemble with no resistor fitted, then power up the board.

Try 1k and 2k in (2) (just place into the holes will contact) and check for LED brightness you like. ( I don't like my LEDs too bright..)

(3) is the RST pulldown, usually 10k on circuits that use a Electrolytic, but the MCU will exit reset with no resistor in (3), just more slowly using the internal resistor inside the 89C51

(5) is the pullup for the Infrared receiver, so the part code of that, if visible would indicate what to use. 2k would do there.

See below, IR Pin3 looks to be V+, Pin1 is Out, so (5) could be 27R series supply resistor. (no decoupling C visible?)

 

aryeduino wrote:

Do you have a MCU in mind for this ? Needs to be an 8051 with bootloader (AT89LP51RB2 etc - I notice Digikey has low price on DIP AT89LP51RB2-20PU ),

or a 8051 pin-compatible AVR (Mega162, 90S8515 ?)- see this thread  https://www.avrfreaks.net/forum/c51avr-mcu-setu

Thanks for the info and assistance - I have already have STC89C52RC and AT89S52-24PU at hand and also on the way AT89C52,AT89C51 and AT89S51.

I have just started with it and I got the MCU that were mentioned on the page of which it supports.

Not sure if the board (when finally assembled) will support other boards then the one mentioned on the page.

If any of you have any suggestions to work with another MCU that I have not mentioned and knowing the it will be supported with the 8051 pin-compatible AVR Board that I have to build, I would be happy to know.

Also what software to use to develop and upload ( I now use for uploading HEX to the STC - stc-isp and for AT PROGIsp with USBASP - Development I am thinking to do with Keil ARM).

Any MCU with a serial UART bootloader will work. Sounds like you already have STC working, so that may be good enough to learn with.

AT89C52,AT89C51 (no RC2 like suffix? ) are very old and do not have any serial loader ability, they need an external programmer.

 

AT89S52-24PU &  AT89S51 have no UART bootloader, but they do have a SPI loader, which would need a SPI programmer connected.

 

The Atmel  AT89LP51RB2-20PU  I mentioned is a more modern core, faster than anything you have listed, and it does have a ROM UART bootloader.

 

This page shows how to enable that ROM bootloader, and links to the Atmel FLIP needed (Atmel version of your stc-exe loader)

http://microchip.force.com/microchipknowledge/articles/en_US/FAQ/8051-FLIP-Programming

 

There are also faster versions of your STC89C52RC, like STC12, STC15 families, but the DIP40 is a less favoured package.

 

Last Edited: Sat. Apr 27, 2019 - 09:20 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the picture, resistor number 5 has color bands

Red Violet Black Gold Brown, so 27 ohms.

 

--Mike

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

avr-mike wrote:

In the picture, resistor number 5 has color bands

Red Violet Black Gold Brown, so 27 ohms.

Checking pin-outs on IR's I think you are right, so I've changed my post above.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How many different value resistors are there? And what are their values? This hopefully should narrow down the choices.[edit] Was done in the first post. I'll just quietly go away now.

 

Last Edited: Sun. Apr 28, 2019 - 07:46 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you all for assisting.

I am now getting closer to start the assembly.. still not sure about all.

See values that below and help approve them - Thank you!

AVR Board NOT YET

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Thank you all for your assistance - I have assembled it the same as I have uploaded above and EVERYTHING Works.

I have already used STC-ISP (6.86R) to program it see:

AVR Board

 

Using Simple code on Kali uVision

#include <AT89S52.H>
sbit LED = P0^0;            // Defining LED pin
sbit LED1 = P0^1;            // Defining LED pin
sbit LED2 = P0^2;            // Defining LED pin
sbit LED3 = P0^3;            // Defining LED pin
sbit LED4 = P0^4;            // Defining LED pin
sbit LED5 = P0^5;            // Defining LED pin
sbit LED6 = P0^6;            // Defining LED pin
sbit LED7 = P0^7;            // Defining LED pin
#define delayrun	50
#define delayblink	65

void Delay(int);           // Function prototype declaration

void main (void)
{
	int i;
    while(1)                // infinite loop
    {
						LED = 0;            // LED ON
						Delay(1700);
						LED1 = 0;            // LED ON
						Delay(1600);
						LED2 = 0;            // LED ON
						Delay(1500);
						LED3 = 0;            // LED ON
						Delay(1400);
						LED4 = 0;            // LED ON
						Delay(1300);
						LED5 = 0;            // LED ON
						Delay(1200);
						LED6 = 0;            // LED ON
						Delay(1100);
						LED7 = 0;            // LED ON
						Delay(1000);

						LED7 = 1;            // LED OFF
						Delay(1000);
						LED6 = 1;            // LED OFF
						Delay(1100);
						LED5 = 1;            // LED OFF
						Delay(1200);
						LED4 = 1;            // LED OFF
						Delay(1300);
						LED3 = 1;            // LED OFF
						Delay(1400);
						LED2 = 1;            // LED OFF
						Delay(1500);
						LED1 = 1;            // LED OFF
						Delay(1600);
						LED = 1;            // LED OFF
						Delay(1700);

						for (i=0;i<20;i++)
						{
								LED7 = 1;            // LED OFF
								Delay(delayblink);
								LED6 = 0;            // LED OFF
								Delay(delayblink);
								LED5 = 1;            // LED OFF
								Delay(delayblink);
								LED4 = 0;            // LED OFF
								Delay(delayblink);
								LED3 = 1;            // LED OFF
								Delay(delayblink);
								LED2 = 0;            // LED OFF
								Delay(delayblink);
								LED1 = 1;            // LED OFF
								Delay(delayblink);
								LED = 0;            // LED OFF
								Delay(delayblink);

								LED7 = 0;            // LED OFF
								Delay(delayblink);
								LED6 = 1;            // LED OFF
								Delay(delayblink);
								LED5 = 0;            // LED OFF
								Delay(delayblink);
								LED4 = 1;            // LED OFF
								Delay(delayblink);
								LED3 = 0;            // LED OFF
								Delay(delayblink);
								LED2 = 1;            // LED OFF
								Delay(delayblink);
								LED1 = 0;            // LED OFF
								Delay(delayblink);
								LED = 1;            // LED OFF
								Delay(delayblink);
				}
						LED=LED1=LED2=LED3=LED4=LED5=LED6=LED7=1;
						for (i=0;i<30;i++){
								LED7 = 1;            // LED OFF
								Delay(delayrun);
								LED6 = 1;            // LED OFF
								Delay(delayrun);
								LED5 = 1;            // LED OFF
								Delay(delayrun);
								LED4 = 1;            // LED OFF
								Delay(delayrun);
								LED3 = 0;            // LED OFF
								Delay(delayrun);
								LED2 = 0;            // LED OFF
								Delay(delayrun);
								LED1 = 0;            // LED OFF
								Delay(delayrun);
								LED = 0;            // LED OFF
								Delay(delayrun);

								LED7 = 0;            // LED OFF
								Delay(delayrun);
								LED6 = 0;            // LED OFF
								Delay(delayrun);
								LED5 = 0;            // LED OFF
								Delay(delayrun);
								LED4 = 0;            // LED OFF
								Delay(delayrun);
								LED3 = 1;            // LED OFF
								Delay(delayrun);
								LED2 = 1;            // LED OFF
								Delay(delayrun);
								LED1 = 1;            // LED OFF
								Delay(delayrun);
								LED = 1;            // LED OFF
								Delay(delayrun);

						}
						LED=LED1=LED2=LED3=LED4=LED5=LED6=LED7=1;
						for (i=0;i<30;i++){
								LED7 = 1;            // LED OFF
								Delay(delayrun);
								LED6 = 1;            // LED OFF
								Delay(delayrun);
								LED5 = 0;            // LED OFF
								Delay(delayrun);
								LED4 = 0;            // LED OFF
								Delay(delayrun);
								LED3 = 1;            // LED OFF
								Delay(delayrun);
								LED2 = 1;            // LED OFF
								Delay(delayrun);
								LED1 = 0;            // LED OFF
								Delay(delayrun);
								LED = 0;            // LED OFF
								Delay(delayrun);

								LED7 = 0;            // LED OFF
								Delay(delayrun);
								LED6 = 0;            // LED OFF
								Delay(delayrun);
								LED5 = 1;            // LED OFF
								Delay(delayrun);
								LED4 = 1;            // LED OFF
								Delay(delayrun);
								LED3 = 0;            // LED OFF
								Delay(delayrun);
								LED2 = 0;            // LED OFF
								Delay(delayrun);
								LED1 = 1;            // LED OFF
								Delay(delayrun);
								LED = 1;            // LED OFF
								Delay(delayrun);

						}
				LED=LED1=LED2=LED3=LED4=LED5=LED6=LED7=1;
    }
}

void Delay(s)
{
    int j;
    int i;
    for(i=0;i<10;i++)
    {
        for(j=0;j<s;j++)
        {
        }
    }
}

Thank you!!!!!!!

Last Edited: Tue. Apr 30, 2019 - 11:53 AM