![]() |
Real Time Clock Module with I2C Interface
0.3
|
|
⇒ back to Project Page |
routines for LED control (via SAA1064) More...
Go to the source code of this file.
Macros | |
| #define | SAA1064_LED_CURRENT01 0x01 |
| definitions for SAA1064 I/O | |
| #define | SAA1064_LED_CURRENT02 0x02 |
| #define | SAA1064_LED_CURRENT03 0x03 |
| #define | SAA1064_LED_CURRENT04 0x04 |
| #define | SAA1064_LED_CURRENT05 0x05 |
| #define | SAA1064_LED_CURRENT06 0x06 |
| #define | SAA1064_LED_CURRENT07 0x07 |
| #define | SAA1064_IO_SUCCESS 0xe0 |
| IMPORTANT: THESE RETURN VALUES MUST DIFFER FROM I2C RETURN VALUES (see "i2c.h") | |
| #define | SAA1064_WRONG_ADDRESS 0xe1 |
| #define | SAA1064_WRONG_MODE 0xe2 |
| #define | SAA1064_INIT_ERROR 0xe3 |
| #define | SAA1064_IO_ERROR 0xe4 |
| #define | SAA1064_NUMBER_RETRIES 3 |
| #define | SAA1064_INIT_DELAY_MS 500.0 |
| #define | SAA1064_DEMO_DELAY_MS 50.0 |
| #define | SAA1064_DEMO_LOOPS 5 |
| #define | SAA1064_STATIC_MODE 0x00 |
| Do not change these values! | |
| #define | SAA1064_DYNAMIC_MODE 0x01 |
| #define | I2C_SAA1064_ADDRESS0 0x70 |
| Do not change the address values! | |
| #define | I2C_SAA1064_ADDRESS1 0x72 |
| #define | I2C_SAA1064_ADDRESS2 0x74 |
| #define | I2C_SAA1064_ADDRESS3 0x76 |
| #define | I2C_SAA1064_NUMBER_REG 7 |
| #define | I2C_SAA1064_NUMBER_STAT 2 |
| #define | BCD_TABLE_LENGTH 23 |
| 7-Segment Display Configuration | |
| #define | BCD_TABLE_DECIMAL_POINT_VALUE 20 |
| #define | BCD_TABLE_ERROR_VALUE 21 |
| #define | BCD_TABLE_OFF_VALUE 22 |
| #define | BCD_DECIMAL_POINT_OFFSET 10 |
Functions | |
| uint8_t | saa1064_init (uint8_t, uint8_t, uint8_t) |
| uint8_t | saa1064_read_status (uint8_t, uint8_t *) |
| uint8_t | saa1064_send_digits (uint8_t, uint8_t, uint8_t, uint16_t, uint8_t, uint8_t) |
Variables | |
| static const unsigned char numbers_bcd_table[] | PROGMEM |
routines for LED control (via SAA1064)
Platform: AVR ATmega (tested on ATmega168)
Include Files:
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file saa1064.h.
1.8.2