STM 8-bit MCU, which protocol to use ?

Thread Starter

DarthVolta

Joined Jan 27, 2015
521
Right now I have a STM8S003F3/K3 "8-bit micro-controllers offer 8 Kbytes of Flash program memory, plus integrated true data EEPROM", seems to be ok, I damaged the PCB before.
https://www.st.com/en/microcontrollers-microprocessors/stm8s003f3.html
It's from a temp. sensor. , so programmed for that and for 3x7seg LED readout. There's a 4pin header, with SWIM and reset pin RTS, 3v3/GND. However the UART TX/RX pins are right next to the header too, so it would be phsyically easy to connect.

I'm new to all this, I'm learning some STM32 on Arduino uno. And I have a BUS Pirate. So as a newb, what should I hook up, the UART, SWIM, I2C, what's the easiest way, or better way, etc, to go about making this into an 8-bit arduino ? I have rs232 chips, so at some point I want to add that too.
 
Last edited:

Thread Starter

DarthVolta

Joined Jan 27, 2015
521
I stuck wih 1-wire, added PU res's, I got the 4053 bodged on, instead of a 4051, IDK if I fried the LED display, it's missing some segment's, but active.

Using the bus pirate and a terminal, I can reset the MCU. So far I haven't figured much else useful, too many rabittholes at once. I'm new to serial terminal's, BusPirate, and MCU's, and on and on.

How can I at least ask the chip, over terminal, if it thinks it's working right ?

In 1 of the datasheets it say's it's possible to erase this thing, by trying to read certain memory, without permissions. I don't want to erase this thing, not yet.

I want to see what it's doing.
 

MrChips

Joined Oct 2, 2009
34,817
Show us the board and the part number of the board.
Or supply links to the board, not just the chip part number.

RS-232 is not used too much these days among hobbyists.

Sorry, I don't do Arduino.
If you down load STM32CubeIDE I can lend you a hand.
 

Thread Starter

DarthVolta

Joined Jan 27, 2015
521
I might not have meant rs232, I meant USB chips I think.

I can't find it, it was a 3 segment LED display, with the STM8S003F3, off ebay, no schematic, and no other smart chips, and just the 4051, that seems to be just set to 000b, and not changing. It's part of the NTC temp sensor ciruit, not part of the LED drive or controll, IDT anyways.I mapped some of the circuit, I need to finish it.

But any tips on how to ask this thing anything over terminal ? I'm going back to reading data sheets on it.

I tried getting AVRdude working, but some lib.dll was missing, and tried winAVR iirc, and ///I don't even know what this stuff is,
 

Thread Starter

DarthVolta

Joined Jan 27, 2015
521
I have to take the dame headers off AGAIN, to see where the tl432 goes, I added them last night, why oh why, before I put the IC on, and finished the circuit.

Here so far, the 4051 is on the right, so I think I got itcorrect, with the 4053 on the left, and the op amp was never included, so make of that what u will, till I finish drawing it. How's what the MCU was doing tho. I can try JTAG soon, it's all new to me tho.
temp.PNG
 

Thread Starter

DarthVolta

Joined Jan 27, 2015
521
The LED looks like it's displaying something, and slowing changing. On my analog scope it looks gibberish.

I'm hoping the MCU is just fine.

The tempProbe was hit by 36-44V or so, while the unit was being powered by 10V or so
 

Thread Starter

DarthVolta

Joined Jan 27, 2015
521
Ok new plan, use an ATTINY102, which is SOIC-8 for a start, and 8-bit, and the datasheet is shorter, and it has 'only' 50 or so instructions.

So I can try reusing some PCB, or try deadbug on copper clad, or bare wire like these even. How will operating at 12MHz or so, be like on such a thing ?
https://hackaday.com/tag/deadbug/

So if this thing speaks USART - Universal Synchronous Asynchronous Receiver Transceiver, and I want to hook it up with USB, what chips, from my salvage collection, should I be looking for ? A UART transceiver ? I should have all and any chips, that printers, modems, etc, with USB have.

I know I could just use the Arduino or Buspirate, but I want a standalone 8-bit MCU to play with. ASAP, I don't want to order a chip, or PCB, I want to hack it, just like in the Fallout wastelands.
 

MrChips

Joined Oct 2, 2009
34,817
Why do you want to use an SOIC package when you can select for a long list of MCUs available in DIP packages?
For starters, ATtiny2313 is just as easy to use.

If you want to hook up to a computer's USB port you can use CP2102. However this is only available in a QFN package which has no leads and is very difficult to solder. You could buy CP2102 already available as an adapter.

1586907964640.png
 
Top