Discussion in "Project Help" started by    DrNossberg    Sep 12, 2018.
Wed Sep 12 2018, 01:38 am
#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, 05:42 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, 05:54 am ]
Thu Sep 13 2018, 09:19 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, 09:19 pm ]
Fri Sep 14 2018, 02:09 am
#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 Fri Sep 14 2018, 02:27 am ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

EdwardFew
Mon Mar 18 2024, 01:14 pm
EmeryPah
Mon Mar 18 2024, 11:51 am
RobertMax
Sun Mar 17 2024, 10:22 pm
DanielJar
Fri Mar 15 2024, 06:52 pm
Tuzaimecor
Fri Mar 15 2024, 02:32 am
PromotionFoode
Thu Mar 14 2024, 08:11 pm
EdwardGeawn
Sun Mar 10 2024, 12:24 pm
ZacharyShado
Sat Mar 09 2024, 10:04 am