Program At89S51 with Arduino SPI library


hello everyone,

i'm wondering if it's possible program at89s51 arduino using spi library only.  i'm newbie in spi world, why found program at89s51 allow me understand spi protocol play great ucontroller.

i'm asking self on how data programmed on chip after sending "programming enable instruction" using mosi or have put on address line , data line ? asked question because found in datasheet "serial programming instruction set"  page 20 byte 2, 3, 4 have "xxxx a11 a10 a9 a8" or "a7 a6 a5 a4 a3 ..." , i'm struggling understand mean these.

i've created test circuit send first programming instruction chip , try data response it, it's not working. i've put 6mhz crystal osillator 2 22pf cap ucontroller. (i'm not sure if correct or not ?)

my request there can answer me about  i've asked , tell me if project feasible or not ?

i'm newbie in electronic can in 2 hours in 2 weeks.  :smiley-mr-green:

thanks in advance.

quote
i'm asking self on how data programmed on chip after sending "programming enable instruction" using mosi or have put on address line , data line ?

spi serial interface, sent on mosi , read miso.
quote

"...serial programming instruction set"  page 20 byte 2, 3, 4 have "xxxx a11 a10 a9 a8" or "a7 a6 a5 a4 a3 ..." , i'm struggling understand mean these.


it means first send opcode (byte1), in byte 2 send highest bits of address (highest 4 bits don't care: xxxx),  byte 3 holds 8 least significant bits of address , byte 4 data want write @ address.

quote

my request there can answer me about  i've asked , tell me if project feasible or not ?

it feasable , exercise indicate.
but assure want exercise: incidently bought a  programmer (an sp200s clone) 12$, can at89s52. seems work black box, don't see happening not learn on isp or spi of coarse.

if still convinced want arduino, link may interesting:
http://www.avrfreaks.net/index.php?name=pnphpbb2&file=printview&t=99161
it indicates can program at89s52 avrdude + usbasp. expect avrdude + arduinoisp should work too.





Arduino Forum > Using Arduino > Microcontrollers > Program At89S51 with Arduino SPI library


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support