Discussion in "Project Help" started by    DrNossberg    Sep 11, 2018.
Tue Sep 11 2018, 08:08 PM
#1
Hello everybody!

First of all let me explain some stuff about me: i'm a second-year programming student in a 42-like school for those who know. So, this mean i'm pretty cumfortable with the C language (but still has many things to learn! )

I've recently bought a card from SPE , equipped with a buttos and a littel display screen able to display digits/words. The microproc is a STC15W4K32S4 type SOP28 (here is the datasheet: http://www.stcmicro.com/datasheet/STC15W4K32S4-en.pdf the pin configuration is on page 17)

I've fount how to interacte with buttons here : http://www.8051projects.net/forum-t4476-post.html and will work aroud, but didn't fount anything about the screen.

Moreover, i will follow those tutorial: https://www.intorobotics.com/8051-microcontroller-programming-tutorials-simulators-compilers-and-programmers/ enven if that's a lot of things to read.

My issue: i don't have the card for now, so i can't actually work on it, but throught my reaserch on the web, i've hear that Keil UVision could simulate the card.
In fact, this is my problem. The provider gave me a software called STC-ISP, but this soft is actually really hard to understand. And on top, I donnot what soft of Keil i should download (http://www2.keil.com/mdk5/legacy/ what's that??) and where to find it, or even if I could use an other soft because it look like I need to be part of a compagny to download their soft (C51).

Thanks in advance, any response, whatever it is will be apreciated!

Best Regards,
DrNos
Wed Sep 12 2018, 12:12 AM
#2
Hi
There are several issues here.
The original 8051 was a very simple item.
One serial port and very little memory.
Even so you could do a lot with it and it became very popular.

The STC15W4K32S4 is an 8051 with lots of extras.
Many companies made similar chips with add-ons.

The problem is that while the core 8051 is the same, the add-ons
are all different.

Embedded is all about knowing what register to set
and where those registers are.

The Keil C51 compiler knows about the 8051 and simple variants
but not one as complex as the STC15W4K32S4.

To use Keil, or any,compiler you need to get header files and extra
information from the chip maker about the STC15W4K32S4 registers.

Finding examples on line is the best way to get it working.
This is a very complex chip, it may be some time before you can
master all its functions.

To start with, concentrate on using the basic 8051 features
to read the keypad and print messages.

You can download a free copy of the C51 compiler here.
https://www.keil.com/demo/eval/c51.htm

Company detail aren't checked.
This free version is limited to 2Kilobytes of code,
but that is plenty for now.


Development boards are all different.
Only the board makers know what the display is and how it
is connected to the micro.
I would expect them to supply example code to get you started.

"STC-ISP" sound more like software just to store code on the chip.
Can you give more details of "STC-ISP" and the development board ?


[ Edited Wed Sep 12 2018, 12:24 AM ]
Thu Sep 13 2018, 03:49 PM
#3
Hi, thanks you for your reply ^^

First of all, by reading your reply, I abandoned my project. What I've imagine (and I realize it now), is wayyy to complexe at my level for know.

That said, the header your talking about as describe in the file I''ve provided as link in my post, as the description/screenshot of the STC-IPC software.
Thank's for the Keil's link, this will help me in the future.

For know, i'll learn assembly code, I think I reach the point in development I had to precisely know what i'm doing. That's the result of my last two week's research ^^

Again, thank you very much and best regards,

DrNos


[ Edited Thu Sep 13 2018, 03:49 PM ]
Thu Sep 13 2018, 08:39 PM
#4


First of all, by reading your reply, I abandoned my project. What I've imagine
(and I realize it now), is wayyy to complexe at my level for know.

DrNossberg


I think you are wise to start slowly.

At the heart of the The STC15W4K32S4 is an 8051.
If you stick to programming for the 8051 core you should be able to use your new board.
Later you can start using extra features.

The 8051 only has 128 bytes of memory, common variants had 256 bytes.(eg AT89C52)
You can use code for these variants as well.

Knowing assembly language helps you understand the system,but it is little practical use.
Don't spend too much time learning it, working in 'c' is easier.



[ Edited Thu Sep 13 2018, 08:57 PM ]

Get Social

Information

Powered by e107 Forum System

Conversation

DragonDad
Tue May 21 2019, 03:02 PM
Hi. Who is online?
Tue May 14 2019, 12:38 AM
Jayson Contreras
Hello
Xkalebar
Sun Apr 28 2019, 09:06 AM
Please provide me the code for gsm based sms controlled notice board
ExperimenterUK
Sun Apr 14 2019, 10:52 PM
@hassan malik post your problem in the "General help Guidance and Discussion" forum
Sun Apr 14 2019, 05:06 PM
RAJESH MAPARi
please send me code to interface atmega32 with 24c1024 serial eeprom
Sun Apr 14 2019, 01:33 PM
hassan malik
hello sir i installed proteus 7.8 professional on window 7 ultimate and window 10 but there would be same errors onn both windows. the error is bad license key.please any one help me
Sun Apr 14 2019, 01:32 PM
hassan malik
hello sir i installed proteus 7.8 professional on window 7 ultimate and window 10 but there would be same errors onn both windows. the error is bad license key.
ExperimenterUK
Sat Apr 06 2019, 05:59 PM
@deshrar. Please post your question in 8051 forum
Sat Apr 06 2019, 07:43 AM
deshraj
hallo mam.. i have downloded gsm notice board code its running fine on lcd but how so send msg to the module . i mean format of password and msg.. thank you
kevinharsha
Wed Apr 03 2019, 04:38 PM
Can i see the circuit diagram for the music tone library 8051 project?

Downloads

Comments

DragonDad
Tue May 21 2019, 02:50 PM
dhiyamtech
Thu May 09 2019, 10:20 AM
harsha.reddy
Fri May 03 2019, 09:02 AM
soumen1963
Fri May 03 2019, 06:01 AM
Vasily
Mon Apr 29 2019, 04:03 AM
Xkalebar
Sun Apr 28 2019, 08:59 AM
obibikwe
Fri Apr 19 2019, 05:55 PM
gigyani
Thu Apr 18 2019, 01:43 AM

Online

Guests: 31, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38066
Newest member: DragonDad
Forum Activity
Ansh12 Avatar
Posted By Ansh12
Sun Apr 28 2019, 02:15 PM
I made a minor change, it works in Proteus.Try the...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Apr 25 2019, 08:20 PM
I made a minor change, it works in Proteus.Try the...
gigyani Avatar
Posted By gigyani
Thu Apr 25 2019, 01:17 AM
when i add cufirst.hex its not working.after 2-3 s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Apr 24 2019, 12:29 AM
http://www.8051projects.net/download-d205-electron...
gigyani Avatar
Posted By gigyani
Tue Apr 23 2019, 09:22 PM
How to enter the electronic voting machine into vo...
Ansh12 Avatar
Posted By Ansh12
Mon Apr 22 2019, 09:12 AM
Then flash the led when you get any input on B0.Le...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Apr 19 2019, 05:35 PM
The full error is control_unit.asm(1294): error A4...
gigyani Avatar
Posted By gigyani
Thu Apr 18 2019, 10:09 PM
I'm using keil uvision5. attached is the rar file ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Apr 18 2019, 04:58 PM
Please zip your full code and post it.Which assemb...
gigyani Avatar
Posted By gigyani
Thu Apr 18 2019, 02:01 AM
STATREAD:MOV A, #WTCMD ;LOAD WRITE CO...