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

Sun Oct 13 2019, 02:02 AM
Aline Hutchinson
Hey there,
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

ilylily07
Tue Oct 15 2019, 04:32 PM
hientran123
Tue Oct 15 2019, 02:27 AM
Sat Oct 05 2019, 02:38 PM
zexalo
Thu Oct 03 2019, 09:53 AM
thanhle12345
Thu Oct 03 2019, 07:37 AM
ramon_vsc
Fri Sep 20 2019, 04:53 PM
youssoufba
Thu Sep 19 2019, 11:57 AM
Taiphan000
Tue Sep 17 2019, 04:21 AM

Online

Guests: 41, Members: 0 ...

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

Members: 38097
Newest member: ilylily07
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 22 2019, 05:18 AM
wimac Avatar
Posted By wimac
Mon Oct 21 2019, 09:18 AM
I’ve been following this thread and looking at the...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Thu Oct 17 2019, 09:38 PM