MCUdude / ButterflyCore

An Arduino core for the ATmega169, ATmega329 and ATmega649
GNU Lesser General Public License v2.1
10 stars 4 forks source link

ATmega329P and segment LCD #2

Closed furieuxjk closed 6 years ago

furieuxjk commented 6 years ago

Hello!

First of all - thanks for this great Arduino Core!

I have LCD which is 1/3 bias and 1/4 duty. It has only two digits (8 pins in total, 4 common pins and 4 segment pins). I would like to try to use this LCD with ATmega329P. So I connected all four common pins to ATmega329P COM0...COM3 and also segment pins to SEG0...SEG3.

Now, questions: 1) where and how I can define which segments belong to which pins? 2) I have 16 MHz external crystal connected to ATmega329P - will it work with LCD? Everywhere is mentioned 32,768 kHz crystal, but not 16 MHz.

MCUdude commented 6 years ago

Hi! I haven't worked with the ATmega LCD microcontrollers for a long time, and this core is just some work I did a few years ago. I haven't tested it on ATmega329P, but I guess it will work.

  1. I'm not quite sure. You should check out the butterfly example code to see how the "default" butterfly LCD is controlled.
  2. The 32.768kHz crystal is only for the real time clock. The microcontroller needs a much higher clock, typically 8 or 16 MHz.
furieuxjk commented 6 years ago

Ok, will try to investigate further.