Author Topic: how to program the 8051 board with CP2102 chip  (Read 651 times)

0 Members and 1 Guest are viewing this topic.

Offline Kittu20Topic starter

  • Regular Contributor
  • *
  • Posts: 96
  • Country: in
how to program the 8051 board with CP2102 chip
« on: April 08, 2023, 11:32:40 am »
I have 8051 development board and CP2102 module. I want to program the Sst89e516rd2 using the CP2102 chip  because USB to rs232 converter is not working properly.

I am supplying the 12 volt dc to the board. I have removed both jumpers on JP4 to disconnect MAX232 from MCU.

I have done the following connection.

CP2102's GND pin to the ground pin of ICSP.
CP2102's TXD pin to the RXD pin P3. 0 of  Sst89e516rd2
CP2102's RXD pin to the TXD pin P3. 1 of Sst89e516rd2



Link for board https://www.amazon.in/Silicon-TechnoLabs-Development-P89V51RD2-SST89E516RD/dp/B014SIQ8SM

CP2102 chip  https://www.electronicscomp.com/cp2102-usb-to-ttl-serial-converter-module?gclid=CjwKCAjw_YShBhAiEiwAMomsEKRy8d8z_wQgqx1JWOjuWLwioaVUJfOj11zayzVe01c6Bzk8Ebf7zhoCmRcQAvD_BwE] [url]https://www.electronicscomp.com/cp2102-usb-to-ttl-serial-converter-module?gclid=CjwKCAjw_YShBhAiEiwAMomsEKRy8d8z_wQgqx1JWOjuWLwioaVUJfOj11zayzVe01c6Bzk8Ebf7zhoCmRcQAvD_BwE  [/url]

I am following link https://exploreembedded.com/wiki/Starter_SST89E516RD_USB_Development_board


When I try to program the controller I go to reset the switch phase but the microcontroller is not detected as given in the link Controller to be detected ?
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1545
  • Country: au
Re: how to program the 8051 board with CP2102 chip
« Reply #1 on: April 11, 2023, 11:35:39 pm »
When I try to program the controller I go to reset the switch phase but the microcontroller is not detected as given in the link Controller to be detected ?

Are you sure your Sst89e516rd2 has a bootloader programmed into it ?
If you can find a parallel programmer, you may be able to read the DIP40 part, to check for the bootloader.
You can also connect a scope to the TXD.RXD lines and check what comes from PC side, and what the MCU replies with.

If the Sst89e516rd2 has no bootloader programmed, your choices would be to
a) find parallel programmer and bootloader code and pgm it
or
b) choose a newer DIP40 with a bootloader included
eg lcsc has these in older 89C51 pinout
STC89C516RD+40I-PDIP40 1+ US$1.696 131 In Stock
STC12C5A60S2-35I-PDIP40 1+ US$1.7278 940 In Stock

and this part is faster and newer and smarter, but not quite the same pinout.
STC8H8K64U-45I-PDIP40  1+ US$1.5607    51 In Stock

or, Aliexpress have MCU parts mounted with USB programming included for similar $
https://www.aliexpress.com/item/1005004472730522.html

https://www.aliexpress.com/item/1005004786538002.html
https://www.aliexpress.com/item/1005004786339050.html
« Last Edit: April 12, 2023, 12:41:22 am by PCB.Wiz »
 

Offline barshatriplee

  • Regular Contributor
  • *
  • !
  • Posts: 130
  • Country: bd
Re: how to program the 8051 board with CP2102 chip
« Reply #2 on: April 13, 2023, 05:09:26 am »
Make sure you have installed the correct USB driver for the CP2102 chip on your computer. You can download the driver from the manufacturer's website or the website of the vendor from whom you bought the CP2102 module.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf