Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Which Programming Language do i need for...

Status
Not open for further replies.

crip

Newbie level 4
Joined
Dec 10, 2003
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
61
programming a counter for a creditcard-device. The device needs to count +1 everytime a card goes through the slot.
Hope, everybody understands what i need to know!

THX, crip
 

It's very simple program. You can use any program (asembler, basic, c ) it is just a few lines of code.

Mr.Cube

PS. what controller?
 

I did not fully understand, but the choice will depent on the implementation of the design. do you use controller, FPGA, ... or waht. according to the design type the programming language will be defined automatically
 

First of all THX to u guys, but to be honest. I don´t even know what a controller is.
Which is the best solution for that one and how do i programm the code?What kind of interface or software do i need for asembler or basic?

C-U, crip
 

I doesn't semms like you know much about programming.
Which languages do you know, if any?

A Microcontroller is a microprocessor with internal program memory and some extra pheripehals included.
 

I know Java, PHP, ASP, XML and some more. But what i don´t know is how to programm a hardware device that counts how many card have been in it, like a creditcard counter?

crip
 

It would reccomend that you learn C language, you can get C compilers for most MCUs.
The easiest way is to learn how to program your PC in C before you start to do embedded C programming. You can make simple dos C programs to run at your PC.
There are several C compilers for PCs.
Microsof Visual Studio .NET or Borland C compiler are good choices to learn C programming.
I don't know Java myself, but only C, C++ and Assembler.
I think you will soon catch up with C programming if you can program in JAVA.
Most microcontollers are programmed in C or Assembly. Some hobby users program in Basic.
The best way to start C programming is to get a good book about C programming and do the exercices from the book.
There are some C books uploaded here at elektroda.

This book is a good reference book for C, but it is not good for learning C.
The C programming Language by Ritchie and Kernighan:
**broken link removed**
This book was written by the inventors of C: Ritchie and Kernighan.
I'm not sure what is the best learning book, there are several books to choose from.


What should the counter do?
How do you want to display and/or store the counter value?
If you want a simple counter which can display the value at 7-segment displays, then you don't even need to program a microcontroller.
You can get complete digital counter ICs from the 74xx or 4xxx logic families.
 

Here are some descriptions of some of the differences between C/C++ and JAVA:
**broken link removed**
**broken link removed**
 

I don't know what kind of card you used.
But I think C and JAVA will help
 

Thanks to you guys. This really helps me a lot!

Ok, now i know the language (C, Java, Asembler) and i know that an IC could make it too. But how do i connect the IC or any other device to the PC? Do i need a special interface for that? How do i say the IC through C/C++ to count one up? Do i have to build it on my own?
Do you know some other links?


crip
 

Probably the easiest way to communicate between hardware and software is through UART/RS232/Serial Port. You should be able to find java examples to access the serial port on your PC-platform.
For the microcontroller you should choose one with UART. It's not that difficult to send a few bytes over the serial port using C.

Antharax
 

As microcontroller I would reccomend to use an 8-bit. Atmel AVR or Microchip PIC with UART are probably the best choices,. They are both Flash devices which can be reprogrammed. You can use ISP (In Circuit Programming) of the MCU.
I think you should program the MCU in C.
On the PC side you can program in either C, C++, C# or JAVA.

But you haven't told what the functionality should be.
Are you going to store the counter value in the MCU or will you always have a PC connected and display it at a monitor?
Are you going to display the data without a PC connected?
 

Since you have Java Programming experience, there's no need to learn another laugauge.

You can get a Java programmable Micro from HVW for $89US.

Check it out at www.hvwtech.com

Have fun.

Enigma460
 

?? only counting every C.Card inserted or some other task (only some C.card,) ecc.. ??
 

Based on the discussion so far I would sugest that you acquire a simple micro development board with normal components. Once you understand how to use the board and software, I think that most of you questions will be answered. I would suggest that you get one of the standard offerings based on the 8051, PIC, or AVR series of micros.
 

dipchip said:
Based on the discussion so far I would sugest that you acquire a simple micro development board with normal components. Once you understand how to use the board and software, I think that most of you questions will be answered. I would suggest that you get one of the standard offerings based on the 8051, PIC, or AVR series of micros.
I have an Atmel AVR STK500 starter kit:
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2735
This is the best microcontroller starter kit I have seen.
 

You can use PIC16F627.
Download Hi-tech PICC lite its free for that mcu (w*w.htsoft.com).

On net you can find many programmers for 16F627.

Mr.Cube
 

OK, THX you all for the help. I will check out the links you gave me and come back.

Bye, crip
 

to program to pic , you also can download MPLAB IDE from microchip.com
. Its emulator is also available.

BR.,
deimos
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top