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:
parent
579140af81
commit
12f1ce3e78
1 changed files with 3 additions and 3 deletions
6
main.c
6
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)
|
||||
|
|
Loading…
Reference in a new issue