Author Topic: STC12C5A60S2 flashing  (Read 399 times)

0 Members and 1 Guest are viewing this topic.

Offline kazoeTopic starter

  • Newbie
  • Posts: 1
  • Country: nl
STC12C5A60S2 flashing
« on: April 01, 2023, 07:08:34 pm »
Hi, Im a beginner in electronics and i found this old mcu that i got from an old led cube from aliexpress. I wanted to reflash it for other purposes, but it does not work... When I click on check MCU, it checks the target MCU, but does nothing. Any advice? Edit: on the power rail is a 10nf and 100pf and at the crystal 2x 47pf.
« Last Edit: April 01, 2023, 07:18:35 pm by kazoe »
 

Offline WattsThat

  • Frequent Contributor
  • **
  • Posts: 766
  • Country: us
Re: STC12C5A60S2 flashing
« Reply #1 on: April 01, 2023, 07:32:57 pm »
Not familiar with the 12C series but I can suggest two things.

1. RST line needs a 10uf cap in addition to the 10k pull up resistor. Refer to page 383 of the datasheet.
http://www.stcmicro.com/datasheet/STC12C5A60S2-en.pdf

2. Be sure to download an empty program into the Arduino to use the usb<->serial converter as a standalone converter. If the Arduino program has any debug.print statements, there will be activity on the tx pins, confusing the processor.

PS: note the datasheet says <47 pf for the loading caps. 22 pf would probably be a good choice.
« Last Edit: April 01, 2023, 07:37:05 pm by WattsThat »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16832
  • Country: lv
Re: STC12C5A60S2 flashing
« Reply #2 on: April 01, 2023, 07:38:58 pm »
47pF capacitance on crystal is a lot. Generally you need about half of that and datasheet shows <47pf, not 47pF.
 

Online coromonadalix

  • Super Contributor
  • ***
  • Posts: 5853
  • Country: ca
Re: STC12C5A60S2 flashing
« Reply #3 on: April 02, 2023, 08:05:54 am »
normally 22pf to 33pf is the go to ??
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf