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.

Is it possible to build a simple billing terminal using AVR?

Status
Not open for further replies.

czpir

Member level 3
Joined
Apr 18, 2002
Messages
61
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
581
AVR question

Greetings

Is it possible to build a simple billing terminal using an avr ?

I mean can we have something like a 4x4 matrix keyboard, external ram, lcd (16x2) and a rs232 port from a single avr ?

I feel that there may not be many ports and pins for all this, what is the solution ?

TIA
 

Re: AVR question

well, it depends on a certain system you are going to develop of course. but i suppose that atmega128 could suit your needs, it has six (8pin) ports including multiplex data and address ports, and port g (alternative, i.e. instead of ALE, WR, RD, etc).
visit www.atmel.com
 

Re: AVR question

The ATMega seems to be a smt. I really do not want to go with this for a prototype.

Is there a possibility of using 2 avrs ?
 

Re: AVR question

it depends on the detailed system... why you do not whant to use atmega? is it too expensive? of course, sometimes it's better to use 2 MPUs, 1 deals with basic tasks the other is for some peripherial tasks, but again, it's better to discuss a circuit in details, not just a general talk
 

Re: AVR question

I do not prefer to go with the atmega128 at the moment as I would need to make a PCB to mount the chip. I would prefer a DIP package for prototyping.

I know it would be easier to discuss a specific application, but at the moment it is conceptual and I am just trying to develop the BOM so that I can go about the procurement prior to development. I could post updates on my progress.

If we use 2 AVRs what would be the best way to get them to communicate with each other ?

On the top level this would need to have a keyboard to punch the item codes on a matrix keyboard, displaying the same on the lcd, the quantity and the totals added till a end switch is pressed.

All display would happen on the lcd for the moment.
 

Re: AVR question

well, try 90s8515 (it comes with DIP package too). interface to external memory, UART. the 2 MPUs could communicate via UART: 1 MPU is connected to keyboard and communicates with the other MPU via UART. if you want to reserve UART for an external rs232, then you can use general port pins plus a pin for external interrupt to provide data exchange between the 2 MPUs
 

AVR question

i think there is a possibily to make it with one mcu...
a s8515 or mega8515 has 32 IO Pins.

8 for matrix
2 for uart
18 for ram
LCD via SPI = 3 (SCK,MOSI,SS) with a 4094

so u need 31 Pins and have one left ;))
 

Re: AVR question

How about using a keyboard decoder ?
 

Re: AVR question

By not wanting to develop using smt devices you are limiting your choices. Some devices are available ONLY in smt packages. One techinique for prototyping with smt packages is to fab an smt adapter board with pins so that it appears like a dip or sim package. There are companies that already sell these boards. An advantage to having your prototype pcb fab'd is that the board layout is already done AND verified. There are fab shops that specialize in protoype pcbs that are pretty inexpensive, like https://barebonespcb.com (as long as you can keep the design to 2 layers).

I would design with the ideal device and then find a way to deal with the packaging second.
 

AVR question

Use to 2 paralel in/serial out latch register circuit (like 74LS597) for 16 keys. It consume 4 lines. The LCD can be access using 7 lines: 3 for control and 4 for data (or 6 2 control and 4 data but I do not recommend it). You can overlap the output lines for controling the serial latches with the data lines for the LCD. Until now you used 8 lines: 7 for LCD and 1 for latches (3 lines for the latches are overlap with the data bus from LCD) The rest of the circuit lines are for RS232 and RAM access. Hope that help you.
 

Re: AVR question

You can cut the total number of i/o pins by:
1) using serial lcd: they are most popular than the parallel ones, today
2) use analogic encoding for the 4*4 keyboard to have only one input pin occupied: you can find some app. note in the micr*chip website about that, i don't remember the number, sorry.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top