documentation

This commit is contained in:
iceman1001 2020-01-17 17:06:46 +01:00
parent df5083603c
commit cb67feee19
2 changed files with 6 additions and 1 deletions

View file

@ -1326,6 +1326,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
}
LED_D_ON();
hitag2_init();
// init as reader

View file

@ -155,7 +155,11 @@ void lf_init(bool reader) {
FpgaSetupSsc();
// When in reader mode, give the field a bit of time to settle.
if (reader) SpinDelay(50);
// 313T0 = 313 * 8us = 2504us = 2.5ms Hitag2 tags needs to be fully powered.
if (reader) {
// 50 ms
SpinDelay(50);
}
// Steal this pin from the SSP (SPI communication channel with fpga) and use it to control the modulation
AT91C_BASE_PIOA->PIO_PER = GPIO_SSC_DOUT;