From 353ef6f739baca7589d6f576cf5b7bbb14554031 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Sun, 3 Jul 2022 21:59:55 +0300 Subject: [PATCH] duplicator works too (on the edge of the field) --- armsrc/hfops.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/armsrc/hfops.c b/armsrc/hfops.c index 9dc803804..1efb4b052 100644 --- a/armsrc/hfops.c +++ b/armsrc/hfops.c @@ -96,6 +96,7 @@ static uint32_t HfEncodeTkm(uint8_t *uid, uint8_t modulation, uint8_t *data) { if (modulation == 0) { // TK-13 // 74ns 1 field cycle, + // carrier frequency is fc/64 (212kHz), 4.7 mks // 100 field cycle = impulse (13 bytes) // 1000 field cycle = `1` (125 bytes) // 500 field cycle = `0` (63 bytes) @@ -171,7 +172,7 @@ int HfWriteTkm(uint8_t *uid, uint8_t modulation, uint32_t timeout) { continue; } - SpinDelay(10); + SpinDelay(5); for (int i = 0; i < elen; i++) { for (int j = 0; j < 1;) { if (AT91C_BASE_SSC->SSC_SR & AT91C_SSC_TXRDY) { @@ -188,8 +189,6 @@ int HfWriteTkm(uint8_t *uid, uint8_t modulation, uint32_t timeout) { } } } - - SpinDelay(100); } switch_off();