= HF8V = / = SP8WJT = / = SP0106RZ =


HF-6050


PROJECT: HF-6050
DESCRIPTION: Digital System based on ATMEGA128
STATUS: u
PROJECT START DATE: 2020
DOCUMENTATION: TM, 20 pages
DIMENSIONS: 50 x 45 mm
WEIGHT: 13.2 g

UC-###: UC-136 -> UC-245 -> UC-246
uC FAMILY: AVR
THN ADDRESS: 0x92
TYPE: 0x1F

HARDWARE VERSION: 2.5
SOFTWARE VERSION: 1.25


Modules:
PROJECTDESCRIPTIONPCBSTATUSREMARKS
HF-12224uC module ATMEGA64 (version 1)TPD42651fUC-136
HF-12224uC module ATMEGA128 (version 2)TPD42651u fUC-245
HF-12224uC module ATMEGA128 (version > 2.4)TPD42651uUC-246
HF-70250Programming connectorTPD11301ubecause of design error special connector must be used for HF-10060 standard
HF-17763Keyboard 4x4TPD57763uoptional
HF-17966Keyboard 4x4TPD57966uoptional
HF-4036Input-output deviceTPD52911uoptional

Project Info

HF-6050 is simple single board computer (but I still call it Digital System). It is de facto the same as HF-12224 Microprocessor Module but HF-6050 designator defines system as a whole with additional equipment, software, etc... The were many "adventures" with this system, you can belive or not but ATMEGA64 which was first choosen to this project is type 0x13 in my UC database. I never thought that hexadecimal numbers can be unlucky! :)) Initially ATMEGA64 (UC-136) was soldered for TPD42651 but for some reasons something goes wrong and uC was destroyed, supply rail has short-circuit to ground (near 0 ohm) ... Sometimes happens. I could not establish reason but probably I connected reversed power supply. I exchanged it with ATMEGA128 (UC-245) which is the same LQPF64 case but 128K flash instead of 64K. And again I made the same error and burned another ATMEGA128!
Thus currently another ATMEGA128 (UC-246) is installed. To protect HF-6050 from reversed power supply polarity I added TVS diode BZW06-145, in reversed polarity. This is powerfull 300 A peak current diode. There is no particular reason to use that model which is 145 volt version, but I have some 150 pcs of it and in reversed polarity it works perfectly (at least for small power supplies, where overcurrent protection works well, otherwise it can develope problems with overheating)...

This system has the following features:
  • Flash memory 128 KB (DRIVE0, system only)
  • RAM memory 4 KB
  • Internal EEPROM memory 4 KB (DRIVE1, 15 user files, 1 system segment)
  • External EEPROM memory 25CSM04, 512 KB (DRIVE2, 2040 user files, 8 system segments)
  • Clock 16 MHz (can be overclocked to 20-24 MHz)
  • Power supply: 3.3V or 5V
  • 53 I/O pins available as external ports
  • 4 I/O pins for onboard devices
  • Programming interface which is not compatible (because of design error) with HF-10060 standard, so special connector HF-70250 must be used
  • Reset button
  • Protection against reversed supply polarity
  • External XTAL option


  • System Drives:

    DRIVE# DESCRIPTION TYPE SIZE FILE FORMAT SYSTEM SEGS USER SEGS REMARKS
    DRV0 ATMEGA128 FLASH fixed 128KB none 512 0 system drive, read only
    DRV1 ATMEGA128 EEPROM fixed 4KB THFS8 5 11 system/user
    DRV2 25CSM04 fixed 512KB THFS8 8 2040 user
    DRV3 HF-1469 mobile 4KB THFS8 1 15 user, must be connected externally
    DRV3 HF-1471 mobile 32KB THFS8 1 127 user, must be connected externally
    DRV4 HF-64107 mobile 32KB THFS8 1 127 user, must be connected externally
    DRV5 HF-64111 mobile 512KB THFS8 8 2040 user, must be connected externally
    DRV6 --- --- --- --- --- --- not installed but supported by software
    DRV7 --- --- --- --- --- --- not installed but supported by software

    Port assigments:

    PORT SIGNAL_NAME TYPE ASSIGMENT EXTERNAL DEVICES SIGNAL NAMES
    PORTA PA0-PA7 general I/O user ENC8, HF-40125_ADRL, HF-6423_ADRL, HF-64107_ADRL, HF-64112_DTA, HF-90113_ADRL
    PORTA PA0 general I/O user CONN_TESTER, HF-1549_CS, HF-1782_DIG9, HF-6417_CS, HF-90112_CS, RC_CALIB
    PORTA PA1 general I/O user HF-1549_CK, HF-1782_LED, HF-6417_CK, HF-90112_CK
    PORTA PA2 general I/O user HF-1549_DI, HF-6417_DI, HF-90112_DI
    PORTA PA3 general I/O user HF-1549_DO, HF-6417_DO, HF-90112_DO
    PORTA PA4 general I/O user
    PORTA PA5 general I/O user
    PORTA PA6 general I/O user
    PORTA PA7 general I/O user
    PORTB PB0-PB7 general I/O user HF-40125_ADRH, HF-6423_ADRH, HF-64107_ADRH, HF-90113_ADRH, INV_IN
    PORTB PB0 general I/O user HF-12102_CLK, INV_IN0, MMC_CS, SPI_SS
    PORTB PB1 general I/O user HF-10060_SCK, HF-12102_DTA, INV_IN1, MMC_CLK, SPI_SCK
    PORTB PB2 general I/O user HF-12102_LCK, INV_IN2, LCD1602_RS, MMC_DO, SPI_MOSI
    PORTB PB3 general I/O user INV_IN3, LCD1602_E, MMC_DI, SPI_MISO
    PORTB PB4 general I/O user INV_IN4, LCD1602_DB4
    PORTB PB5 general I/O user INV_IN5, LCD1602_DB5
    PORTB PB6 general I/O user INV_IN6, LCD1602_DB6
    PORTB PB7 general I/O user INV_IN7, LCD1602_DB7
    PORTC PC0-PC7 general I/O user INV_OUT
    PORTC PC0 general I/O user 4094_DRIVER_CLK, DIGAN_ENA, I2C_SCL, INTEGRATOR_IN, INV_OUT0, HF-1711_A0, HF-1781_A0, HF-1782_B, HF-17576_CLK, HF-17713_CLK, HF-2861_CLK, HF-40125_WE/, HF-6016_WR/, HF-6423_CS/, HF-64107_W/, HF-64110_CS/, HF-64111_CS/, HF-64112_A8, HF-90113_WE/, TIMER
    PORTC PC1 general I/O user 4094_DRIVER_DATA, DIGAN_IN, I2C_SDA, INTEGRATOR_OUT, INV_OUT1, HF-1711_A1, HF-1781_A1, HF-1782_K, HF-17576_SDA, HF-17713_DI, HF-2861_DTA, HF-40125_OE/, HF-6016_DATA_ADR, HF-64107_G/, HF-64110_CK/, HF-64111_CK/, HF-64112_A9R, HF-90113_OE/, THN, TIMER_INV
    PORTC PC2 general I/O user HF-1711_A2, HF-1781_A2, HF-1782_C, HF-17713_CE, HF-40125_CS/, HF-6423_WE/, HF-64107_E, HF-64110_DO, HF-64111_DO, HF-64112_RAS, HF-90113_CS/, INV_OUT2
    PORTC PC3 general I/O user HF-1711_WR, HF-1781_RST, HF-1782_A, HF-6016_CLK_L, HF-6423_OE/, HF-64110_DI, HF-64111_DI, HF-64112_CAS, INV_OUT3
    PORTC PC4 general I/O user HF-1711_CU, HF-1514_SDA, HF-1781_WR/, HF-1782_D, HF-6016_CLK_H, HF-64112_OE, INV_OUT4
    PORTC PC5 general I/O user HF-1514_SCL, HF-1781_RD/, HF-1782_F, HF-64112_WR, INV_OUT5
    PORTC PC6 general I/O user HF-1781_IC205_CS/, HF-1782_G, INV_OUT6
    PORTC PC7 general I/O user HF-1781_IC208_CS/, HF-1782_E, INV_OUT7
    PORTD PD0-PD7 general I/O user HF-1781_DTA, HF-40125_DTA, HF-5121, HF-6016_DTA, HF-6423_DTA, HF-64107_DTA, HF-90113_DTA, SPECAN_SCAN
    PORTD PD0 general I/O system/user HF-1711_D0, HF-1782_DIG1, INT0, SQW_GEN
    PORTD PD1 general I/O user HF-1711_D1, HF-1782_DIG2, INT1
    PORTD PD2 general I/O user HF-1711_D2, HF-1782_DIG3, INT2, RXD1
    PORTD PD3 general I/O user HF-1711_D3, HF-1782_DIG4, INT3, TXD1
    PORTD PD4 general I/O user HF-1711_D4, HF-1782_DIG5
    PORTD PD5 general I/O user HF-1711_D5, HF-1782_DIG6
    PORTD PD6 general I/O user HF-1711_D6, HF-1782_DIG7
    PORTD PD7 general I/O user CW_OUTPUT_DEVICE (non modulated), HF-1782_DIG8
    PORTE PE0-PE7 general I/O user
    PORTE PE0 general I/O user HF-10040_RXD, HF-10060_MOSI, ICSPCLK, RXD0
    PORTE PE1 general I/O user HF-10040_TXD, HF-10060_MISO, ICSPDAT, TXD0
    PORTE PE2 general I/O user ICSPPROG
    PORTE PE3 general I/O user
    PORTE PE4 general I/O user INT4
    PORTE PE5 general I/O user INT5
    PORTE PE6 general I/O user INT6
    PORTE PE7 general I/O user INT7
    PORTF PF0-PF7 general I/O user HF-17763, HF-17966
    PORTF PF0 general I/O user ADC0, HF-17763_R1, HF-17966_4, SPECAN_IN
    PORTF PF1 general I/O user ADC1, HF-17763_R2, HF-17966_3
    PORTF PF2 general I/O user ADC2, HF-17763_R3, HF-17966_2
    PORTF PF3 general I/O user ADC3, HF-17763_R4, HF-17966_1
    PORTF PF4 general I/O user ADC4, HF-17763_C1, HF-17966_8
    PORTF PF5 general I/O user ADC5, HF-17763_C2, HF-17966_7
    PORTF PF6 general I/O user ADC6, HF-17763_C3, HF-17966_6
    PORTF PF7 general I/O user ADC7, HF-17763_C4, HF-17966_5
    PORTG PG0 extension board resources system DRV2_SI
    PORTG PG1 extension board resources system DRV2_CS
    PORTG PG2 extension board resources system DRV2_SO
    PORTG PG3 extension board resources system Buzzer BZ1 (external), CW_OUTPUT_DEVICE (modulated)
    PORTG PG4 extension board resources system DRV2_SCK





    Software

    Currently THOS-1 operational system is installed. It is first ATMEGA128 with this system, what means 16 times more FLASH and 4 times more RAM comparing to HF-6030, but assembler code is so efficient that currently only more than 16KB is used with all these extended functions. Major changes: there are two different 256-command vector tables, one for user, another for HAVR - this is logical because some system functions cannot be acceced by user directly, in HF-6030 all is mixed in one table. I also wrote simple RAM Memory Manager to manage "huge" amount of 4KB RAM what was unthinkable in HF-6030 with only 3 RAM segments. It is easy to manually manage 3 segments but 16 segments is much too more. The main idea of THOS-1 operational system is still the same - do everything as simple as possible.


    HAVR

    HF-6050 is fourth system with HAVR8 compiler and interpreter with extended set of instructions, because it have much more ports and RAM segments than any other system.


    Sources:
    [1] ATMEGA128 datasheet

    Prefix 60

    HF Register

    Microcontrollers in my constructions and external equipment

    UC Database - my CPU collection

    Electronics

    Main Page