Search found 20 matches

by conroydp
Mon Sep 11, 2017 4:45 pm
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi guys, Using the flowcharts above as a basis, I have expanded on the code and am trying to pass a value (which is a number containing a value between 0 and 255) from one PIC to the next. I have found it works perfectly except when the value being passed is equal to 4 or less. In this instance the ...
by conroydp
Tue Sep 05, 2017 7:36 am
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi Ben,

It is now sorted and the 2 PIC's are communicating flawlessly. Tx for your assistance and support, much appreciated.

Regards
Conroy
by conroydp
Thu Aug 24, 2017 1:15 pm
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi Ben,

I was looking at the same thing this morning and will try your suggestion later when I get home.

Thanks for all your support and I will let you know how I get on.

Regards
Conroy
by conroydp
Thu Aug 24, 2017 8:16 am
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi,

Would anyone recommend 10K pull-up resistors on TX and RX?

As mentioned in previous post, the file flowcharts in the post from Ben result in a continuous blinking LED.

Regards
Conroy
by conroydp
Wed Aug 23, 2017 6:34 pm
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi Ben,

I now have an LED that does nothing for around 5 seconds and then starts flashing non-stop.

I have read a number of posts and have not come across any solution so am still relying on your or any other members assistance please.

Regards
Conroy
by conroydp
Wed Aug 23, 2017 4:59 pm
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi Ben, I am really starting to feel STUPID as I have been struggling for 3 days to get 2 PIC's to talk to each other. Using Flowcode, I have tried SPI, I2C and now UART as per your recommendation. I have connected TX RA0 to RX RA1 I have connected TX RA1 to RX RA0 In the 12f1822_SPI_TX flowchart, I...
by conroydp
Wed Aug 23, 2017 4:06 pm
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi Ben,

Tx for your quick response.

I think the easiest will be to follow your advice and use UART.

I will let you know how I get on.

Tx again...


Rgards
Conroy
by conroydp
Wed Aug 23, 2017 2:32 pm
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi guys, I found a rookie mistake in my RX file as I did not decrease the variable flashcount every time I did the loop. The results in this version si that there is no flashing on the LED so I suspect that the RX chip is not receiving any data from the TX chip. Any ideas anyone.... please... Regard...
by conroydp
Wed Aug 23, 2017 2:22 pm
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi guys, I have managed to compile both flowcharts. A few facts I have checked to facilitate troubleshooting: When I simulate the sending on the TX flowchart, the SPI out (green arrow) flashes as expected. Unable to check the RX flowchart in simulation mode. When I place the PIC's in the circuit The...
by conroydp
Wed Aug 23, 2017 1:33 pm
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

Re: SPI between two 12F1822 PIC's

Hi Martin,

Changes to uppercase and it compiled fine. Thanks for your assistance. Now for some more testing...

Regards
Conroy
by conroydp
Wed Aug 23, 2017 11:38 am
Forum: 8-Bit PIC
Topic: SPI between two 12F1822 PIC's
Replies: 15
Views: 8160

SPI between two 12F1822 PIC's

Hi, I need some assistance on getting either SPI or I2C working between 2 12F1822 PIC's please. I am using the 30 day free trial of Flowcode 7. Problem 1 Both chips are running at 32mhz, however I am unable to compile the TX flowchart to hex as Flowcode is reporting an " ^ (192) undefined identifier...
by conroydp
Fri Dec 02, 2016 4:26 pm
Forum: Flowcode V5 Free Edition
Topic: CCP on 12F1822
Replies: 2
Views: 7572

Re: CCP on 12F1822

Hi Benji,

I added an output for RA5. Now I am getting the PWM signal on both pins (RA2 and RA5).

Any suggestions?


Regards
Conroy
by conroydp
Sun Nov 27, 2016 2:34 pm
Forum: Flowcode V5 Free Edition
Topic: CCP on 12F1822
Replies: 2
Views: 7572

CCP on 12F1822

Hi Martin, Tx again for your quick and very helpful response, much appreciated. I have developed another flowchart which will assist in counting the interrupts on RA2 and provide an output using CCP1. Unfortunately, the INT and CCP are both on pin5. I noticed that flowcode does not allow me to "Use ...
by conroydp
Sat Nov 26, 2016 2:35 pm
Forum: Flowcode V5 Free Edition
Topic: Signal gen using 12F683
Replies: 2
Views: 6350

Signal gen using 12F683

Hi, I would really appreciate any help. I am trying to generate a square wave signal of 2ms (on/off) using a 12F683. I have a very simple flowchart that only varies the pulse between signals. I need to be able to generate from 1 hz to 300hz only. I have and ADC on pin 7 of the pic and use that to va...
by conroydp
Mon Nov 07, 2016 6:31 am
Forum: Flowcode V5 Free Edition
Topic: RB0 on 12F1822 PIC?
Replies: 7
Views: 10344

Re: RB0 on 12F1822 PIC?

Hi Martin, Tx you for your comprehensive and clear explanation. So if I understand you correctly, I need to have the following 3 settings to run at 32Mhz, starting with osccon.JPG followed by setting the speed to 32Mhz and Auto clear Watchdog in the chip configuration as below config.JPG As a note.....
by conroydp
Sat Nov 05, 2016 4:24 pm
Forum: Flowcode V5 Free Edition
Topic: RB0 on 12F1822 PIC?
Replies: 7
Views: 10344

Re: RB0 on 12F1822 PIC?

Hi Martin, I have tried just about everything but am unable to get the chip running. I used Test12f1822-#3.fcf from another thread to confirm hardware is operational and the PIC works. I was able to get the LED to flash on RA0. I then replicated the chip configuration in my flowchart to no avail. I ...
by conroydp
Fri Nov 04, 2016 4:57 pm
Forum: Flowcode V5 Free Edition
Topic: RB0 on 12F1822 PIC?
Replies: 7
Views: 10344

Re: RB0 on 12F1822 PIC?

Hi Martin and Leigh,

Thank you for your response, I have not yet tried it on hardware.

I did manage to compile successfully. I will try it tonight and post a reply.

Regards
Conroy
by conroydp
Fri Nov 04, 2016 3:24 pm
Forum: Flowcode V5 Free Edition
Topic: RB0 on 12F1822 PIC?
Replies: 7
Views: 10344

RB0 on 12F1822 PIC?

Hi, I recently developed a flowchart that I am using to calibrate an electronic speedometer to either increase or decrease the reading going to the speedometer. I originally designed the circuit using a 12F683 and made a few examples that worked 100%. However, the 8mhz CPU on the 12F683 is too slow ...
by conroydp
Wed Sep 03, 2014 8:23 am
Forum: Feature requests
Topic: ENC28J60 Ethernet LAN
Replies: 48
Views: 62729

Re: ENC28J60 Ethernet LAN

Hi Benj, It's been nearly a year since your comment above mentioning that "you'll have a play". Have you perhaps had any progress? There are a large number of users waiting in anticipation wanting to add "affordable" Ethernet connectivity to their projects. Please.... :roll: :roll: :roll: :D :D :D R...
by conroydp
Sat Jun 14, 2014 8:07 pm
Forum: Feature requests
Topic: ENC28J60 Ethernet LAN
Replies: 48
Views: 62729

Re: ENC28J60 Ethernet LAN

Hi BenJ,

Here's another Flowcode user that would be "over the moon" if we can get the ENC28J60 working with Flowcode V5.

:D :D :D

Regards
Conroy