Zeile 97:
Zeile 97:
There will be a translation table on the [[PUGAUGE tables]] page.
There will be a translation table on the [[PUGAUGE tables]] page.
== Connecting D301 LCD to ATmega6490 MCU ==
{{TableBegin}}
Connection from the D301 LCD to the PUGAUGE MCU is documented on the [[PUGAUGE Tables]] page.
! LCD pin name !! pin functions !! MCU pin name !! MCU pin number !! BBR pin number
|-
| pin_1
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 1 || seg_s
|-
| com2 || 1 || seg_f
|-
| com3 || 1 || seg_e
|-
| com4 || 1 || seg_d
{{TableEnd}}
| SEG2 || 72 || 47
|-
| pin_2
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 1 || seg_i
|-
| com2 || 1 || seg_j
|-
| com3 || 1 || seg_k
|-
| com4 || 1 || seg_n
{{TableEnd}}
| SEG3 || 71 || 46
|-
| pin_3
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 2 || seg_s
|-
| com2 || 2 || seg_f
|-
| com3 || 2 || seg_e
|-
| com4 || 2 || seg_d
{{TableEnd}}
| SEG6 || 68 || 43
|-
| pin_4
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 2 || seg_i
|-
| com2 || 2 || seg_j
|-
| com3 || 2 || seg_k
|-
| com4 || 2 || seg_n
{{TableEnd}}
| SEG7 || 66 || 41
|-
| pin_5
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 3 || seg_s
|-
| com2 || 3 || seg_f
|-
| com3 || 3 || seg_e
|-
| com4 || 3 || seg_d
{{TableEnd}}
| SEG10 || 63 || 38
|-
| pin_6
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 3 || seg_i
|-
| com2 || 3 || seg_j
|-
| com3 || 3 || seg_k
|-
| com4 || 3 || seg_n
{{TableEnd}}
| SEG11 || 58 || 33
|-
| pin_7
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 4 || seg_s
|-
| com2 || 4 || seg_f
|-
| com3 || 4 || seg_e
|-
| com4 || 4 || seg_d
{{TableEnd}}
| SEG14 || 55 || 30
|-
| pin_8
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 4 || seg_i
|-
| com2 || 4 || seg_j
|-
| com3 || 4 || seg_k
|-
| com4 || 4 || seg_n
{{TableEnd}}
| SEG15 || 54 || 29
|-
| pin_9
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 5 || seg_s
|-
| com2 || 5 || seg_f
|-
| com3 || 5 || seg_e
|-
| com4 || 5 || seg_d
{{TableEnd}}
| SEG18 || 51 || 26
|-
| pin_10
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 5 || seg_i
|-
| com2 || 5 || seg_j
|-
| com3 || 5 || seg_k
|-
| com4 || 5 || seg_n
{{TableEnd}}
| SEG19 || 50 || 25
|-
| pin_11
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 6 || seg_s
|-
| com2 || 6 || seg_f
|-
| com3 || 6 || seg_e
|-
| com4 || 6 || seg_d
{{TableEnd}}
| SEG22 || 47 || 22
|-
| pin_12
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 6 || seg_i
|-
| com2 || 6 || seg_j
|-
| com3 || 6 || seg_k
|-
| com4 || 6 || seg_n
{{TableEnd}}
| SEG23 || 46 || 21
|-
| pin_13
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 7 || seg_s
|-
| com2 || 7 || seg_f
|-
| com3 || 7 || seg_e
|-
| com4 || 7 || seg_d
{{TableEnd}}
| SEG26 || 43 || 18
|-
| pin_14
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 7 || seg_i
|-
| com2 || 7 || seg_j
|-
| com3 || 7 || seg_k
|-
| com4 || 7 || seg_n
{{TableEnd}}
| SEG27 || 41 || 16
|-
| pin_15
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 8 || seg_s
|-
| com2 || 8 || seg_f
|-
| com3 || 8 || seg_e
|-
| com4 || 8 || seg_d
{{TableEnd}}
| SEG30 || 38 || 13
|-
| pin_16
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 8 || seg_i
|-
| com2 || 8 || seg_j
|-
| com3 || 8 || seg_k
|-
| com4 || 8 || seg_n
{{TableEnd}}
| SEG31 || 37 || 12
|-
| pin_17
|
{{TableBegin}}
! function/plane !! digit !! segment
{{TableEnd}}
| COM3 || 75 || 50
|-
| pin_18
|
{{TableBegin}}
! function/plane !! digit !! segment
{{TableEnd}}
| COM2 || 76 || 51
|-
| pin_19
|
{{TableBegin}}
! function/plane !! digit !! segment
{{TableEnd}}
| COM1 || 77 || 52
|-
| pin_20
|
{{TableBegin}}
! function/plane !! digit !! segment
{{TableEnd}}
| COM0 || 78 || 53
|-
| pin_21
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 8 || seg_a
|-
| com2 || 8 || seg_b
|-
| com3 || 8 || seg_c
|-
| com4 || 8 || seg_p
{{TableEnd}}
| SEG28 || 40 || 15
|-
| pin_22
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 8 || seg_h
|-
| com2 || 8 || seg_g
|-
| com3 || 8 || seg_l
|-
| com4 || 8 || seg_m
{{TableEnd}}
| SEG29 || 39 || 14
|-
| pin_23
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 7 || seg_a
|-
| com2 || 7 || seg_b
|-
| com3 || 7 || seg_c
|-
| com4 || 7 || seg_p
{{TableEnd}}
| SEG24 || 45 || 20
|-
| pin_24
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 7 || seg_h
|-
| com2 || 7 || seg_g
|-
| com3 || 7 || seg_l
|-
| com4 || 7 || seg_m
{{TableEnd}}
| SEG25 || 44 || 19
|-
| pin_25
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 6 || seg_a
|-
| com2 || 6 || seg_b
|-
| com3 || 6 || seg_c
|-
| com4 || 6 || seg_p
{{TableEnd}}
| SEG20 || 49 || 24
|-
| pin_26
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 6 || seg_h
|-
| com2 || 6 || seg_g
|-
| com3 || 6 || seg_l
|-
| com4 || 6 || seg_m
{{TableEnd}}
| SEG21 || 48 || 23
|-
| pin_27
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 5 || seg_a
|-
| com2 || 5 || seg_b
|-
| com3 || 5 || seg_c
|-
| com4 || 5 || seg_p
{{TableEnd}}
| SEG16 || 53 || 28
|-
| pin_28
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 5 || seg_h
|-
| com2 || 5 || seg_g
|-
| com3 || 5 || seg_l
|-
| com4 || 5 || seg_m
{{TableEnd}}
| SEG17 || 52 || 27
|-
| pin_29
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 4 || seg_a
|-
| com2 || 4 || seg_b
|-
| com3 || 4 || seg_c
|-
| com4 || 4 || seg_p
{{TableEnd}}
| SEG12 || 57 || 32
|-
| pin_30
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 4 || seg_h
|-
| com2 || 4 || seg_g
|-
| com3 || 4 || seg_l
|-
| com4 || 4 || seg_m
{{TableEnd}}
| SEG13 || 56 || 31
|-
| pin_31
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 3 || seg_a
|-
| com2 || 3 || seg_b
|-
| com3 || 3 || seg_c
|-
| com4 || 3 || seg_p
{{TableEnd}}
| SEG8 || 65 || 40
|-
| pin_32
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 3 || seg_h
|-
| com2 || 3 || seg_g
|-
| com3 || 3 || seg_l
|-
| com4 || 3 || seg_m
{{TableEnd}}
| SEG9 || 64 || 39
|-
| pin_33
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 2 || seg_a
|-
| com2 || 2 || seg_b
|-
| com3 || 2 || seg_c
|-
| com4 || 2 || seg_p
{{TableEnd}}
| SEG4 || 70 || 45
|-
| pin_34
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 2 || seg_h
|-
| com2 || 2 || seg_g
|-
| com3 || 2 || seg_l
|-
| com4 || 2 || seg_m
{{TableEnd}}
| SEG5 || 69 || 44
|-
| pin_35
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 1 || seg_a
|-
| com2 || 1 || seg_b
|-
| com3 || 1 || seg_c
|-
| com4 || 1 || seg_p
{{TableEnd}}
| SEG0 || 74 || 49
|-
| pin_36
|
{{TableBegin}}
! function/plane !! digit !! segment
|-
| com1 || 1 || seg_h
|-
| com2 || 1 || seg_g
|-
| com3 || 1 || seg_l
|-
| com4 || 1 || seg_m
{{TableEnd}}
| SEG1 || 73 || 48
{{TableEnd}}
== Font made visible ==
== Font made visible ==
<html>
<html>
Version vom 31. Dezember 2018, 00:00 Uhr
The PUGAUGE is intended to be a base platform for devices to display Information in an environment where low power requirements are mandatory.
Examples are:
Bike computers
Thermometers
mobile measurement devices
Hardware
8-Character Segmented LCD 14-segment Display
Atmel AVR ATmega6490A AVR microcontroller
Software
Platform
The PUGAUGE is intended to be Arduino-compatible. The application software shall benefit from the ease of use, familiarity of many developers and availability of many libraries for sensors and other peripherals.
Therefore, an extension to the Arduino IDE is developed to allow the PUGAUGE being selected as a board type in the Arduino IDE. This should not be too complicated, as the PUGAUGE processor is an Atmel AVR processor closely related to the Atmel AVR processors used in the Arduino UNO and MEGA.
Additionally the optiboot bootloader for the Arduino is being modified to run on the PUGAUGE and allow Arduino sketches to be uploaded onto the PUGAUGE.(zu ergänzen)
Application
A special LCD library is being developed that provides easy access to the on board LCD ( 8 characters, 14 segments plus decimal point and apostroph).(zu ergänzen)
Build notes
Connection of ATmega6490
In the first development version all circuitry is mounted on a solderless breadboard:
The ATmega6490 is mounted on the BBR .
LCD-Voltage Buffer Capacitor: 3x220nF FKC in parallel from ATmega6490 Pin 1 / BBR Pin 76 to GND
System Status LED: Port line PB0 (ATmega6490 Pin 19 / BBR Pin 94) to 330 Ohm to yellow LED to GND
In-System-Programmer (IST) USPasp connected to 10-pin 2x5 100mil-spaced Connector:
See also http://nerdyelectronics.com/usbasp-tutorial/ :
Connector seen on board pins
USBasp pin number USBasp pin MCU Pin +---+---+---+---+---+
1 MOSI MOSI | 2 | 4 | 6 | 8 |10 |
5 Reset Reset +---+---+---+---+---+
7 SCK SCK | 1 | 3 | 5 | 7 | 9 |
9 MISO MISO +---+---+---+---+---+
10 GND GND
2 Vcc Vcc
Signal name
description
10-pin-conn pin number
ATmega6490 pin name
ATmega6490 pin number
BBR pin number
MOSI
data from programmer to MCU
1
MOSI
21
96
Reset
reset pulse to MCU
5
Reset
30
5
SCK
serial clock to MCU
7
SCK
20
95
MISO
data from MCU to programmer
9
MISO
22
97
GND
Ground reference
10
GND
99,11,32,81
74,86,7,56
VCC
+5V supply from programmer
2
VCC
100,10,31,80
75,85,6,55
Serial-USB Adapter, connected to TXD/RXD of UART0 of ATmega6490:
Signal name
description
FT323-adapter pin
ATmega6490 pin name
ATmega6490 pin number
BBR pin number
GND
Ground reference
GND
GND
TXD
data from USB to MCU
TXD
RXD/PCINT0/PE0
2
77
RXD
data from MCU to USB
RXD
TXD/PCINT1/PE1
3
78
TQFP-100 Breakout board
When soldering the AVR6490 Chip in the TQFP-100 case to it's breakout board, I made an error:
I turned it 90 degrees to the right. Therefore Pin 1 of the chip appears at Pin 76 of the breakout board.
The algorithm to find the BBR pin when knowing the pin number on the TQFP-100 package of the ATmega6490 is:
BBR-pin = (TQFP-pin + 75) MOD 100
There will be a translation table on the PUGAUGE tables page.
Connection from the D301 LCD to the PUGAUGE MCU is documented on the PUGAUGE Tables page.
Font made visible