Posts Tagged: ‘stc15l204’

Playing with STC15L204 : memory layout / IAP&EEPROM

09/17/2013 Posted by admin

Well, the STC15L204 data-sheet is not very clear on some aspects (the device is simple enough to compensate…).

I almost totally forgot that this device had a 512 bytes E2PROM… And I also wanted to explore its memory to try to figure where ISP code could be located, thus I made a small program to dump the memory content , first using a code pointer (something like « ptr=(__code unsigned char *)addr; » ) and then using the IAP registers (and to get some output in the IAP section, I have put a write 0×55 at address 0×123).

Here are the results (only displaying lines that does not contain only 0xFF) :

On first run :

> Device ready
0000 02 00 13 32 FF FF FF FF FF FF FF 02 02 5F 12 00
....
0310 50 52 4F 4D 0D 0A 00 0D 0A 3E 20 45 4E 44 0D 0A
0320 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0FF0 FF FF FF FF FF FF FF FF FF 00 0B 00 54 00 A4 BD 

> IAP/ISP/EEPROM
0120 FF FF FF 55 FF FF FF FF FF FF FF FF FF FF FF FF 

> END

(Lire la suite…)

First tests with STC15L204 + NRF24L01 boards – SDCC code

06/10/2013 Posted by admin

I have been searching for low cost wireless boards in the past few months to interface with PIR detectors & temperature sensors to create a small wireless network at home, and I have found the following product :

on many (Chinese) websites (dx.com / wayengineer.com / etc…) for around $7 (includes the nrf24l01+ module).

I bought some (via www.wayengineer.com), and only found limited number of documents describing them (mostly the datasheet on stcmcu.com).

(Lire la suite…)