Summary: New eeprom write block function for xmega
Project: AVR C Runtime Library
Submitted by: pitchumani
Submitted on: Wed 16 Nov 2016 01:04:34 PM GMT
Priority: 7 - High
Status: Ready For Test
Assigned to: pitchumani
Discussion Lock: Any
Re: [patch #9163] New eeprom write block function for xmega
On Wednesday 16 November 2016 06:34 PM, Pitchumani wrote:
> Summary: New eeprom write block function for xmega
> Project: AVR C Runtime Library
> Submitted by: pitchumani
> Submitted on: Wed 16 Nov 2016 01:04:34 PM GMT
> Category: None
> Priority: 7 - High
> Status: Ready For Test
> Privacy: Public
> Assigned to: pitchumani
> Originator Email:
> Open/Closed: Open
> Discussion Lock: Any
> Xmega's eeprom shall be programmed byte and page-wise. Current eeprom write
> block function loads one byte to eeprom at a time. Though it uses
> page_erase_and_write command, it doesn't write page-wise.
> Attached patch adds new eeprom_write_block function for xmega (written in C)
> that loads eeprom with maximum of E2PAGESIZE at a time.
> This patch also adds a function named ccp_write_io to write into CCProtected
> (CCP) IO registers.
> Tested the function with ATxmega128A1 explained board. Seems to work fine.
> I tried comparing the cycle count only with simulator. New function shows
> better results for writing more than 2 bytes.