Hi,
I am running a one second flash on and off displayed on port A on my 16f877a, this works lovely.
When I add the RF Component to my project and download it, the program stops running e.g the leds stop flashing, no other hardware and software changes have been altered ?????
The RF component is connected to port C ?
I am using v4.5 flowcode.
Any help would be appreciated.
Many Thanks
James
RF 433 - Component when added Stops my program running
Moderator: Benj
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
-
- Valued Contributor
- Posts: 548
- Joined: Tue Jun 26, 2007 11:23 am
- Has thanked: 6 times
- Been thanked: 44 times
- Contact:
Re: RF 433 - Component when added Stops my program running
The RF module uses a form of flow control on the SPI to inform the microcontroller whether it is ready to receive data. This involves holding the SDI line low while busy, and setting it high when any preceding operations have been completed.
The RF component checks the SDI line when necessary and waits indefinitely for it to be set high.
If the program stops when trying to use the RF component, the SDI line must be being detected as a permanent low.
The RF component checks the SDI line when necessary and waits indefinitely for it to be set high.
If the program stops when trying to use the RF component, the SDI line must be being detected as a permanent low.
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
Re: RF 433 - Component when added Stops my program running
I feel your trying to put your finger on something hardware, it's not hardware, it's the software, when I introduce into the current program which I have attached, the program does not run, when I remove the RF send byte component the program runs, there is a problem with the software v4.5.18.74 flowcode or the way it is compiling for the 16f877a !
- Attachments
-
- 16f877a.hex
- (2.71 KiB) Downloaded 214 times
-
- 16f877a.c
- (21.44 KiB) Downloaded 230 times
-
- 16f877a.fcf
- (5.5 KiB) Downloaded 264 times
-
- Valued Contributor
- Posts: 548
- Joined: Tue Jun 26, 2007 11:23 am
- Has thanked: 6 times
- Been thanked: 44 times
- Contact:
Re: RF 433 - Component when added Stops my program running
I have tested the basic operation of your program (not the actual RF transmissions).
It was failing to run because the Watchdog was enabled in the chip configuration - causing repeated resets.
The component connections are correct for the jumpers to be in position B. The program will also fail to run if the jumpers are in the wrong position.
I have attached a copy of the program with a working configuration (0x3F3A seems to be the best config value for most standard F877(a) applications).
It was failing to run because the Watchdog was enabled in the chip configuration - causing repeated resets.
The component connections are correct for the jumpers to be in position B. The program will also fail to run if the jumpers are in the wrong position.
I have attached a copy of the program with a working configuration (0x3F3A seems to be the best config value for most standard F877(a) applications).