Switch PB5 to PB0

Switched ATTiny LD input from PB5 to PB0 due to potential population conflict with RST function.
This commit is contained in:
Marco Vitchi Thulin 2024-03-10 15:57:34 +01:00
parent 579140af81
commit 12f1ce3e78

6
main.c
View file

@ -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)