From 12f1ce3e78c7f76fbdf404bfca9de27a69b0a9bb Mon Sep 17 00:00:00 2001 From: Marco Vitchi Thulin Date: Sun, 10 Mar 2024 15:57:34 +0100 Subject: [PATCH] Switch PB5 to PB0 Switched ATTiny LD input from PB5 to PB0 due to potential population conflict with RST function. --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 8f957d8..26ea535 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ // PB3 - ADF4350 LE // PB2 - SCK to ADF4350 CLK // PB1 - DO (MOSI) to ADF4350 DATA -// PB5 - ADF4350 LD +// PB0 - ADF4350 LD // PB4 - Status LED void Delay(uint32_t); @@ -46,7 +46,7 @@ int main() PORTB &= ~(1 << PORTB3); // set direction of PB5 (LD Input) as input - DDRB &= ~(1 << DDB5); + DDRB &= ~(1 << DDB0); // enable pull-up resistor on PB5 PORTB |= (1 << PORTB5); @@ -57,7 +57,7 @@ int main() PORTB &= ~(1 << PORTB4); Delay(100000); - // go into an endless loop waiting for frequency lock to be achieved + // enter loop waiting for frequency lock to be achieved while (1) { // read the state of LD (PB5)