Electronics > Beginners

OTP Programming

(1/3) > >>

Sudo_apt-get_install_yum:
Hey everyone!

So I recently ordered a few hundred micro controllers witch only cost me ~5$. I ordered them because they were dirt cheap and I wanted to learn something new!
I’m quite familiar with flash based micros and I’ve worked a lot with AVR's and a bit with PIC's and am used to program in C.

The micro controller that I got is OTP based and not Flash based so it’s a one-time only programming with an instruction based language with is nice so I can get out of my C comfort zone :)

The problem is that I have no idea what compiler to use for this MCU or if there is a specific IDE that you have to use so I don’t waste a ton of micro's trying to get a program right.

Any help to get started is much appreciated!


Datasheet:https://datasheet.lcsc.com/szlcsc/Bojuxing-Industry-BJ8P509FNB_C83513.pdf

hexreader:
Looks like a PIC12C509 to me.

or maybe just similar.

I will leave you to do a careful compare of the two datasheets.

If I am right, then Microchip tool-chain is the obvious choice.

tsman:
Looks very much like a PIC but not compatible. It has 13 bit instructions according to the datasheet but PICs don't have any that are 13 bit. Probably some variant of this clone. Same datasheet comes up with a search & replace if you look for FM8PS54.

Ian.M:
That's going to keep you busy.  If you are feeling brave and are  a competent C programmer,  you could add a BJ8P509 target to the GPUTILS PIC assembler toolsuite.

If you have less free time or aren't so strong a C programmer, the DOS TASM 3.1 table driven assembler may be a better choice.  You'll still have to create the instruction set definition table for the BJ8P509 and an include file for its register addresses and bits, but at least the road-map for adding a new processor is fairly well defined, and no C skills are needed.

james_s:
You're going to want to find at least one flash or UV erasable version to get started with. Otherwise you could burn through dozens of them just trying to get an LED to blink. OTP parts are normally used for production once your code has been finished and tested.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod