hey guys! i just wanna ask... how do i import datas from an ADC zilog Z8F6421 microcontroller to C++ program... i need the digital data from the microcontroller to be used in my C++ program...
Thanks in advance!
hey guys! i just wanna ask... how do i import datas from an ADC zilog Z8F6421 microcontroller to C++ program... i need the digital data from the microcontroller to be used in my C++ program...
Thanks in advance!
Either use the OS's interface for microcontrollers ( don't ask me if it has any ) or use assembly.
Devoted my life to programming...
im really new in this field because this is our thesis... can you elaborate more on the assembly part and the OS part....
thanks again!
Every OS provides an interface for various peripherals ( scanner, printer etc ). You should do some search to find out if your OS supports microcontrollers.
Assembly is difficult and unportable. It is speech with the CPU at the lowest level. You should find out your computers instruction set ( assembly language ) and produce appropriate ASM code.
( Although with the latter you'll also need your microcontrollers documentation )
Devoted my life to programming...
so do i need to convert my C++ program to assembly code??
if so, after converting, what will i do to get the datas from the microcontroller to my C++ program?
Have you tried looking for the OS's interface already?!
Like i said, you're gonna have to get a hold of your microcontroller's documentation for that.
EDIT: You don't have to convert the whole thing to assembly, Microsoft and GNU compilers support inline assembly.
Devoted my life to programming...
how do i look for the OS's interface??
real sorry... complete newb
Google's first hit for the microcontroller turned up a PDF documentation. Inside the PDF document, it mentions Zilog IDE for "in-circuit programming". The site for the Zilog IDE mentions it comes with a C compiler. I would start by reading the documentation (8 pages), downloading the IDE, and asking questions in the C forum from that point.
And consider that a good thing, I've worked with some that only supported BASIC.
goto( comeFrom() );
There you go! It only needs some ( much ) search.
Devoted my life to programming...
You have gotten some good advice.
What you need are some terms for what you are trying to do. You are about to do in American is called "embedded software", "embdded software development" or "real time software". Those terms should allow you to get some information about the basics.
Does your educational institution have a course in either embedded development or real time development?