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

Tue Nov 20 2018, 03:01 PM
Chana
online casino online casino casino games casino online play casino games online
Mon Nov 12 2018, 05:58 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....
bgk3678
Tue Nov 06 2018, 02:36 PM
kindly any one give solution for my problem
ExperimenterUK
Mon Nov 05 2018, 09:48 PM
Pins high is the normal state. You need a program to set them low
mayengbam
Sun Nov 04 2018, 05:41 PM
hello, i am niranjoy, alll the port of my 8051 is always high, even i erase all the program. why is it so happen and what is the problem. any one please help me!
Sun Nov 04 2018, 02:16 PM
BASAVARAJ g kudamble
hi I am interfacing GSM 300 to 8051 microcontroller to receive message from mobile
ExperimenterUK
Sat Sep 29 2018, 06:28 PM
Please post questions in the forum.
Sat Sep 29 2018, 11:26 AM
Ashfaq Ch
hi i have some AT89C51RC microcontrollers already programed. some one help us to how to download from AT89C51RC and after study and edit all corractions reload to AT89C51RC controller
shshistiem
Wed Sep 12 2018, 10:58 PM
hii!! some1 please let me know how i ll get rfid code to 8051 by WEIGAND mode
DrNossberg
Tue Sep 11 2018, 08:09 PM
is there anyone here?

Downloads

Comments

atalnet
Fri Nov 16 2018, 07:44 AM
genius784
Wed Nov 14 2018, 09:25 AM
katherineamt
Mon Nov 12 2018, 03:14 PM
wimac
Sun Nov 11 2018, 03:36 PM
suryanspn
Sat Nov 10 2018, 02:52 AM
RubenMarques
Tue Nov 06 2018, 06:35 PM
mayengbam
Sun Nov 04 2018, 05:36 PM
bgk3678
Sun Nov 04 2018, 02:27 PM

Online

Guests: 48, Members: 0 ...

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

Members: 38021
Newest member: atalnet
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 19 2018, 01:11 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Nov 15 2018, 06:48 PM
Unfortunately I have no experience of LabView,but ...
katherineamt Avatar
Posted By katherineamt
Mon Nov 12 2018, 03:22 PM
I have never used LabView and I have to implement ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 12 2018, 01:21 AM
wimac Avatar
Posted By wimac
Sun Nov 11 2018, 04:03 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 11 2018, 07:25 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 06 2018, 06:10 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 04 2018, 02:52 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 04 2018, 02:48 PM
Xuenan Avatar
Posted By Xuenan
Sat Nov 03 2018, 01:08 PM
Make the 8051 frequency exactly 11.0592 MHz in pro...