Dean Camera
e322f14620
More fixes to the AVRISP command timeout system so that it should no longer lock up while processing command no matter what the conditions.
15 years ago
Dean Camera
ce8d0424b1
AVRISP programmer project now has a more robust timeout system, allowing for a doubling of the software USART speed for PDI and TPI programming.
15 years ago
Dean Camera
331e8dece6
Use _delay_us() function in the XPROGTarget.c file to ensure timing requirements are met, rather than a fixed number of NOPs.
16 years ago
Dean Camera
75d27f8ef0
Oops - PDI handshake delay was too long, causing the device's /RESET functionality to be re-enabled.
16 years ago
Dean Camera
872f61ff53
Fix TPI communications in the AVRISP project when bit-banged USART mode is selected.
16 years ago
Dean Camera
1aeb5056d6
Ensure TPI enable timing requirements are met in AVRISP-MKII programmer. Remove invalid code in the TPI read/write functions.
16 years ago
Dean Camera
2059fd8b1a
Manually pull PDI clock pin high for 1ms before disabling PDI mode in the AVRISP-MKII project, to ensure that the PDI bus is disabled in the target and /RESET functionality restored.
16 years ago
Dean Camera
5d5e359076
Minor code cleanups, remove TemperatureDataLogger host application's Visual Studio Solution files, add LibHIDNet license files.
16 years ago
Dean Camera
efb6c35778
Update Doxygen configuration files to the latest Doxygen version.
16 years ago
Dean Camera
d97db1120b
Added support to the MIDI Class drivers for packed data, where multiple MIDI events are packed into a single USB packet. Added new MIDI Class driver flush routines to override packing behaviour.
16 years ago
Dean Camera
7f9f97c792
Update copyright year to 2010.
16 years ago
Dean Camera
f5951d1593
Reduced guard bit time in the AVRISP project PDI/TPI protocols to reduce the time needed to reverse the data communication direction.
16 years ago
Dean Camera
b1dbd92c32
Fixed AVRISP PDI race condition where the guard time between direction changes could be interpreted as a start bit. Fixed TPI interface lines not being changed correctly when in bit-banged TPI mode.
16 years ago
Dean Camera
e1c1c25619
Change the AVRISP project's RESET LINE makefile tokens to AUX LINE, as it is not always used for target reset.
16 years ago
Dean Camera
d4ca7fb44c
Fix MIT license language to make its intent clearer.
16 years ago
Dean Camera
d15cbdd490
Fix mistakes in the XPROGTarget.c/.h files for TPI mode software USART clock rate and PDI mode XPLAIN board autoconfiguration.
16 years ago
Dean Camera
8ecdc2b144
Rename AVRISP project folder to AVRISP-MKII.
16 years ago
Dean Camera
022035839e
Remove missed timer 0 init code in the ISP protocol handler in the AVRISP project. Switch the XPROG protocol target communications handler over to using Timer 1 COMA/COMB ISRs for the two physical layers, rather than COMA/ICR1. Speed up bit-banged USART mode slightly.
16 years ago
Dean Camera
d1608d4af3
Added const where possible to the source functions in the Projects directory.
...
Added command timeout to the AVRISP project so that incorrectly connected targets no longer freeze the device.
Removed string descriptors from the TeensyHID bootloader to reduce its size.
16 years ago
Dean Camera
65fcebf478
Complete combining of PDI and TPI target communication code files, stub out TINY NVM controller functions.
16 years ago
Dean Camera
cfdab42dcf
Rename PDITarget.c/.h to XPROGTarget.c/.h so that both PDI and TPI programming can be included in the one set of files.
16 years ago
Dean Camera
9decc2bc59
Combine PDIProtocol and TPIProtocol into a single XPROGProtocol set of files.
16 years ago
Dean Camera
ce044844ea
Combine AVRISP project TPI and PDI lib directories - these protocols use the same underlying XPROG wrapper for the host-to-programmer command wrapping.
16 years ago
Dean Camera
31d7194252
Make seperate ISP, PDI and TPI folders in the AVRISP project Lib subdirectory to hold each protocol's files.
16 years ago
Dean Camera
cda88cf97c
Start of implementation of the low level TPI programming protocol in the AVRISP project.
16 years ago
Dean Camera
37c9ba7fa9
Fixed AVRISP project timeouts not checking for the correct timeout period (thanks to Carl Ott).
16 years ago
Dean Camera
b408a5fe62
Add const qualifier to the parameters of Projects' functions where possible.
16 years ago
Dean Camera
021b1b567e
More speed and quality improvements to the software USART in the AVRISP project.
16 years ago
Dean Camera
f0b4d79629
Slightly speed up software USART in the AVRISP project - faster parity computation, ensure received data is byte aligned when receive is complete by throwing away the start bit during reception.
16 years ago
Dean Camera
461607020c
Use default NVM base address in the AVRISP programmer project in case the host programmer software doesn't set it correctly.
16 years ago
Dean Camera
4f74075fad
Speed up bit-banged USART code in the AVRISP project.
...
Fix project text files to refer to "project" instead of "demo".
16 years ago
Dean Camera
a7880ac1cd
Fix error in AVRISP programmer when repeatedly using PDI mode via the hardware USART due to the SendByte routine not clearing the Transmit Complete USART flag.
16 years ago
Dean Camera
bb38793312
Add Doxygen documentation to the completed portions of the PDI programming protocol in the AVRISP project.
16 years ago
Dean Camera
f3e4fbe512
Use the PDI REPEAT instruction in the PDI programmer code to reduce protocol overhead and greatly improve transfer throughput. Switch bit-bang USART in the AVRISP project to Timer 1, so that Timer 0 can be used for hardware timeouts while waiting for the NVM bus or controller to become ready.
16 years ago
Dean Camera
1fa27139f5
Split out NVM access code in the AVRISP project into a seperate NVMTarget.c source file and header. Make NVM register accesses use the NVM base address as set by the host, rather than using the fixed value from the XMEGA datasheet.
16 years ago
Dean Camera
3705330dd3
Use -pedantic compile time option to find and correct several minor code errors.
16 years ago
Dean Camera
307ba254d5
The AVRISP project can now enter PDI mode under both bit-bang and hardware USART connection modes, tested against the XPLAIN board hardware. Still need to complete higher level NVM access code so that the device's memories can be read and written.
16 years ago
Dean Camera
33a46b243a
PDI NVM enable is fast enough that bare polling is enough without a fixed delay in between each attempt. Make sure the USART transmitter is enabled explicitly when the USART is configured, so that repeated attempts to re-enter PDI mode don't fail due to TXEN not being set.
16 years ago
Dean Camera
66201a05e9
Fix PDI code - must send NVM enable key least significant byte first, need to make sure Tx and Rx is switched correctly including disabling the output on the Tx line when receiving.
16 years ago
Dean Camera
7e5966c1a8
Fix AVRISP PDI protocol - make sure inverted masks have the appropriate parenthesis around them, make sure the BREAK command for the hardware USART has 12 clock cycles exactly. Poll NVM Enable bit in the target's STATUS PDI register with a timeout, as it is not set immediately.
16 years ago
Dean Camera
42cfd15793
Change over AVRISP project to have both hardware USART and software USART modes for the PDI protocol, when enabled. Fix up PDI initialisation routines.
16 years ago
Dean Camera
7aecda6fda
Fix PDITarget_ReceiveByte() not discarding the start bit properly, and reading in the bits inverted and in the wrong order.
16 years ago
Dean Camera
1e3513ed70
Add even parity bit to the software USART framing in the AVRISP project's PDI programming code.
16 years ago
Dean Camera
9c8ed168e5
Fix inverted bit-banged USART logic in the AVRISP project for PDI programming. Add a delay to the clock toggling in the AVRISP project to ensure that the programming speed does not exceed 10MHz under any conditions to satisfy the limits in the datasheet for all target voltages. Fix incorrect pin being used as the DATA in in PDI programming mode.
16 years ago
Dean Camera
2919aeeaab
Fixed HID Parser not distributing the Usage Min and Usage Max values across an array of report items.
...
Added new HID_ALIGN_DATA() macro to return the pre-retrieved value of a HID report item, left-aligned to a given datatype.
Added new PreviousValue to the HID Report Parser report item structure, for easy monitoring of previous report item values.
16 years ago
Dean Camera
f338ddcb87
Make sure the protocol handler files are included in the Doxygen documentation of the AVRISP project.
16 years ago
Dean Camera
258a6a0177
Fix the tokens which enable and disable the different programming protocols in the AVRISP project.
16 years ago
Dean Camera
a5adbae652
Document the PDI programming routines implemented so far in the AVRISP project. Add ability to selectively disable ISP programming support in addition to the existing ability to disable PDI programming support.
16 years ago
Dean Camera
f69f03cb0d
Started implementing the low level PDI protocol in the AVRISP project, for XMEGA device programming.
16 years ago