Christian
Published © GPL3+

Hack the Chip

Use a General Purpose Microcontroller to replace your Custom Chip

IntermediateFull instructions provided1 hour684
Hack the Chip

Things used in this project

Story

Read more

Schematics

ATTiny85 Z-Wire Read 1 Interrupt

ATTiny85 Z-Wire Bootloader

1-Wire Reset and Presence Detect

Code

WriteFlashPage

C/C++
void writeFlashPage(uint16_t address)
{
    uint8_t i;
    uint16_t data;
   
    eeprom_busy_wait();
   
    boot_page_erase(address);
    boot_spm_busy_wait();

    for (i = 0; i < SPM_PAGESIZE; i += 2) {
        data = *(uint16_t*)&USI_Buffer[i];
        boot_page_fill(address+i, data);
    }
   
    boot_page_write(address);
    boot_spm_busy_wait();
}
 

Credits

Christian
24 projects • 135 followers
Senior Embedded Engineer
Contact

Comments

Please log in or sign up to comment.