8051 ready board USB conncetion

General discussion on mikroC PRO for 8051.
Post Reply
Author
Message
newbie8051
Posts: 4
Joined: 10 Aug 2015 01:22

8051 ready board USB conncetion

#1 Post by newbie8051 » 10 Aug 2015 01:33

Hello,

I have the 8051 ready board:
http://www.mikroe.com/ready/8051/

I would like to program a simple blinking-lights program. Do I need the 8051prog2 to program the board? I connected a USB cable but the computer does not seem to acknowledge the board (althought I have installed all the required drivers and software as per MikroC Pro documentation) Do I need to power the board too?
Here is the simple program
void main() {
P0 = 0;
while(1){
P0 = ~P0;
Delay_ms(1000);
}
Thank you for your help

User avatar
biljana.nedeljkovic
mikroElektronika team
Posts: 1043
Joined: 30 Jun 2015 15:15

Re: 8051 ready board USB conncetion

#2 Post by biljana.nedeljkovic » 10 Aug 2015 12:06

Hello,

which microcontroller do you use?

You will need a programmer to load the .hex file into your microcontroller to make it work.

You can power the board separately or supply it from the programmer.
Here is the link of our product, if you don't have any, but there are also the programmers of other manufacturers. As long as they use standard .hex file format, you can use our mikroC PRO for 8051 compiler with it.
http://www.mikroe.com/mikroprog/8051/

Best regards,
Biljana

newbie8051
Posts: 4
Joined: 10 Aug 2015 01:22

Re: 8051 ready board USB conncetion

#3 Post by newbie8051 » 10 Aug 2015 20:58

I would like to use a Philips P87LPC764

I bought the programmer and will let you know how it goes when I get it.

Thank you,

newbie8051
Posts: 4
Joined: 10 Aug 2015 01:22

Re: 8051 ready board USB conncetion

#4 Post by newbie8051 » 16 Aug 2015 22:43

Hello,

I got the programmer, I ran the code and I can see the boards's P0 pins voltage changing from 0-5v but no lights. Is there anything else that I have to do in the board for the lights to come on?

This is the program I am running:
void main() {
P0 = 0;
while(1){
P0 = ~P0;
Delay_ms(1000);
}

Very simple.
Thanks,

User avatar
biljana.nedeljkovic
mikroElektronika team
Posts: 1043
Joined: 30 Jun 2015 15:15

Re: 8051 ready board USB conncetion

#5 Post by biljana.nedeljkovic » 17 Aug 2015 15:00

Hi,

take a look at the example code for Led blinking in the compiler. Pay attention that LED is activated by logical zero.

You can send the pictures so I can see how you connected the diodes on Ready for 8051.

I have tested your code on Easy8051 and it works fine.

Best regards,
Biljana

newbie8051
Posts: 4
Joined: 10 Aug 2015 01:22

Re: 8051 ready board USB conncetion

#6 Post by newbie8051 » 23 Aug 2015 20:26

Hello,

I finally got it to work with the AT89 microcontroller but I am trying to use a Philips p87c51fb and the flash programmer does not support it :(
Do you know how can I program this Philips microcontroler using the 8051 ready board?

Thank you so much for you help

User avatar
biljana.nedeljkovic
mikroElektronika team
Posts: 1043
Joined: 30 Jun 2015 15:15

Re: 8051 ready board USB conncetion

#7 Post by biljana.nedeljkovic » 24 Aug 2015 11:30

Hi,

unfortunately that microcontroller is not supported by our compiler, so I don't think you will be able to program P87C51FB.
And also, mikroProg programmer currently supports only Atmel AT89 family of microcontrollers.

Best regards,
Biljana

Post Reply

Return to “mikroC PRO for 8051 General”