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

ExperimenterUK
Fri Mar 15 2019, 02:14 AM
We don't send code,but you can ask for help in the 8051 forum
Thu Mar 14 2019, 04:30 PM
Jui Sanjay Kapare
Hello sir, I want code of interfacing DS18B20 with 8051.plz send the code as early as possible
ExperimenterUK
Mon Jan 07 2019, 09:01 AM
@REVOCATUS please post in the AVR forum
Mon Dec 24 2018, 02:55 PM
REVOCATUS MATEMU
sorry I mean referee boards for player substitution
Mon Dec 24 2018, 02:54 PM
REVOCATUS MATEMU
hi am.looking how to build referee by using Atmega 328 and its codes
Sat Dec 15 2018, 07:15 PM
Arslan ayoub
Hii ,, can I get the simulation of numeric keypad lock on proteus
ExperimenterUK
Mon Dec 03 2018, 10:47 PM
Please post questions in the forum. The chat box is for chat
Mon Dec 03 2018, 12:13 PM
help!me!
help! I don't understand busy flag!
Mon Dec 03 2018, 01:31 AM
ile
hello
Mon Nov 12 2018, 11:28 AM
Pavan_user
i have seen your replica of I2C programming using AT89C51 but i am unable to understand the "ack_bit" variable usage ...looks like it is always 1...can you elaborate how acknowledgment is working....

Downloads

Comments

tutu10
Tue Mar 12 2019, 07:11 AM
Raj243
Fri Mar 08 2019, 02:08 AM
bharatsb
Thu Mar 07 2019, 04:34 PM
Yass7
Thu Mar 07 2019, 03:55 PM
mashabed
Mon Mar 04 2019, 11:08 PM
AccelMotion
Tue Feb 26 2019, 06:06 PM
turbovps
Mon Feb 25 2019, 06:26 AM
the_Doker
Thu Feb 14 2019, 02:21 PM

Online

Guests: 31, Members: 0 ...

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

Members: 38052
Newest member: tutu10
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Mar 24 2019, 09:52 PM
Counting pulses can be as simple asvoid interrupt ...
Ansh12 Avatar
Posted By Ansh12
Sat Mar 23 2019, 05:08 PM
Using the external interrupt on pin B0 is the best...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Mar 22 2019, 09:10 PM
Using the external interrupt on pin B0 is the best...
Ansh12 Avatar
Posted By Ansh12
Fri Mar 22 2019, 03:45 PM
I have pic16f877a and MPLABX8 and I want to count ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Mar 13 2019, 02:32 AM
HiI looked at" Atmel AVR042: AVR Design Considera...
tutu10 Avatar
Posted By tutu10
Tue Mar 12 2019, 07:13 AM
Hi...My firmware upgradable code lock seems to be ...
Yass7 Avatar
Posted By Yass7
Sat Mar 09 2019, 12:52 AM
It's exactly that ! it's my teacher who asked me t...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Mar 09 2019, 12:27 AM
As I understand it, you want to use a P89LPC952 /...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Mar 09 2019, 12:21 AM
After you get the string what do you want to do wi...
bharatsb Avatar
Posted By bharatsb
Thu Mar 07 2019, 04:40 PM
help me to write code for 8051 to receive string ...