Hi using the nrf24e1, in the datasheet it says to set a pin on a particular port to an input or output for example port 0 pin 1 to output:
P0_DIR.1 = 0;
but this doesnt seem to be recognised in keil. what is the correct code for this?
cheers.
P0_DIR |= 0x02; // P0.1 (RxD) is input
"how is it that 0x02 is known to be setting P0.1?"
It isn't!
It's setting P0_DIR.1 - which, if the comment is to be believed, configures P0.1 to be an input
"i have set pulse_pin (p0.5) as an input ... i have set pulse_pin = 0"
What happens on this chip when you write to an input pin?!