Hi there
Yeah got it and it works better now.
Thanks
David
Search found 18 matches
- Tue Mar 06, 2012 12:34 pm
- Forum: General Programming
- Topic: Strange timing issue
- Replies: 6
- Views: 3587
- Tue Mar 06, 2012 10:43 am
- Forum: General Programming
- Topic: Strange timing issue
- Replies: 6
- Views: 3587
Re: Strange timing issue
Hi
All it says in the custom code for the stop function is -
%a_I2C_Master_Stop();
I got here from the "Customize Component Code" window and then clicking on MI2C_Stop and then clicking on "edit code". I guess I am going to the wrong place.
David
All it says in the custom code for the stop function is -
%a_I2C_Master_Stop();
I got here from the "Customize Component Code" window and then clicking on MI2C_Stop and then clicking on "edit code". I guess I am going to the wrong place.
David
- Tue Mar 06, 2012 10:03 am
- Forum: General Programming
- Topic: Strange timing issue
- Replies: 6
- Views: 3587
Re: Strange timing issue
Hi there
I have attached the code I was using to test with. I have also included a screen shot of the program I use to look at the logic levels. FYI the slightly wider set of data on the SDA line is the "Please select mode-" text.
David
I have attached the code I was using to test with. I have also included a screen shot of the program I use to look at the logic levels. FYI the slightly wider set of data on the SDA line is the "Please select mode-" text.
David
- Tue Mar 06, 2012 9:21 am
- Forum: General Programming
- Topic: Strange timing issue
- Replies: 6
- Views: 3587
Strange timing issue
Hi there I have a PIC18F4685 with a 10MHz crystal and HS-PLL enabled and an I2C LCD. My program goes like this - - Set variables to be displayed ie set LCD text to variable and set length of lcd text to variable - Send command to move the cursor on the LCD to the desired place - Sent the LCD text ou...
- Wed Feb 15, 2012 12:00 am
- Forum: Flowcode V5
- Topic: I2C problem
- Replies: 11
- Views: 8788
Re: I2C problem
Hi there I have to give you a massive thankyou Pete! Tried out your code and it worked! I made some minor changes to my code to make it pritty much identical to your code but my updated version still would not work. I tried copying the blocks over to a new file and then it worked. I was trying to wo...
- Sun Feb 12, 2012 10:42 pm
- Forum: Flowcode V5
- Topic: I2C problem
- Replies: 11
- Views: 8788
Re: I2C problem
Hi there I did have a look at this however, it is an example using the serial comminication method with the device rather than I2C. Basically I know the I2C hardware is fine because it works with an LCD display fine on the same bus. I changed the code for the LCD to work with the compass module. Dis...
- Sat Feb 11, 2012 11:12 am
- Forum: Flowcode V5
- Topic: I2C problem
- Replies: 11
- Views: 8788
Re: I2C problem
Hi there
Yes you are correct I have it running at 100Hz. Not really sure what you mean by the I2C Phillip resistor? But I do have a 10k pull up resistor on both the SDA and SCL line.
David
Yes you are correct I have it running at 100Hz. Not really sure what you mean by the I2C Phillip resistor? But I do have a 10k pull up resistor on both the SDA and SCL line.
David
- Fri Feb 10, 2012 3:28 pm
- Forum: Flowcode V5
- Topic: I2C problem
- Replies: 11
- Views: 8788
Re: I2C problem
Hi there Thanks for your replies. I dont have V4 this is the first version of flowcode I have used. I checked to see if it was possible to use the free version but I dont believe the I2C component is available in this version. Yeah its a new module and looks pritty good very similar to the one you u...
- Fri Feb 10, 2012 2:03 pm
- Forum: Flowcode V5
- Topic: I2C problem
- Replies: 11
- Views: 8788
I2C problem
Hi there Was wondering if anyone could give any ideas to help me solve this problem? I am using a easypic6 development board, PIC18f4685, 4MHz, 10K pull up resistors on I2C bus and flowcode 5 this compass sensor - http://www.robot-electronics.co.uk/htm/cmps10doc.htm and this LCD - http://www.robot-e...
- Mon Feb 06, 2012 7:50 pm
- Forum: Flowcode V5
- Topic: ADC in Flowcode v5
- Replies: 3
- Views: 4201
Re: ADC in Flowcode v5
Perfect thanks for that!
- Mon Feb 06, 2012 5:56 pm
- Forum: Flowcode V5
- Topic: ADC in Flowcode v5
- Replies: 3
- Views: 4201
ADC in Flowcode v5
Hi there Just wondering if anyone has been able to get the ADC component to work in Flowcode v5. I am using a PIC18f4685 at 4Mhz and it keeps getting an error when compiling the C code - "D:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_ADC.c(1588): Illegal symbol name: (". I have had a look at th...
- Sat Feb 04, 2012 12:23 pm
- Forum: General Programming
- Topic: Flowkit and 3rd party hardware
- Replies: 9
- Views: 9508
Re: Flowkit and 3rd party hardware
Hi there
Thanks for your replies. Eventually found the problem as usual pritty stupid! After I replaced the crystal it started working again. AArggghh. But now I can program the PIC through the easy pic programmer and it looks OK.
Thanks for your help!
Thanks for your replies. Eventually found the problem as usual pritty stupid! After I replaced the crystal it started working again. AArggghh. But now I can program the PIC through the easy pic programmer and it looks OK.
Thanks for your help!
- Thu Feb 02, 2012 3:24 pm
- Forum: General Programming
- Topic: Flowkit and 3rd party hardware
- Replies: 9
- Views: 9508
Re: Flowkit and 3rd party hardware
Hi there Thanks for the reply. Really good idea you suggested there. I normally just use the ICD2/3 and forgot about the on board programmer. I tried it and it appears to work. I wrote a simple program to flash an LED and it simulates fine however, nothing seems to happen when I send it down to the ...
- Wed Feb 01, 2012 5:22 pm
- Forum: General Programming
- Topic: Flowkit and 3rd party hardware
- Replies: 9
- Views: 9508
Re: Flowkit and 3rd party hardware
Hi there No I havent emailed microchip who sent me to here - http://www.microchip.com/cisar/ I am getting some very weird results. So I have an easy pic 6 board with a PIC18F4520 and 4MHz clock. Flowcode compiles fine then I import the .asm into MPLab. I have copied the output window from when I try...
- Fri Jan 27, 2012 12:51 pm
- Forum: General Programming
- Topic: Flowkit and 3rd party hardware
- Replies: 9
- Views: 9508
Flowkit and 3rd party hardware
Hi there Please forgive my stupidity if I am being stupid here but I have just got Flowcode v5 and a flowkit programmer/debugger device - HP299 and I am using them for the first time. I have writen a very small program to flash an LED which I am trying to send down to my device - PIC18f4520 which is...
- Thu Jan 26, 2012 8:50 am
- Forum: General Programming
- Topic: First flowcode program
- Replies: 9
- Views: 6623
Re: First flowcode program
Hi there I was sure that I had tried changing the settings without the PPP before and it didnt work but I just tried again and it did. If it means anything when you open the window to config the chip the first line is missing and has to be added manually. Once I did it compiles do to C and then down...
- Wed Jan 25, 2012 10:02 am
- Forum: General Programming
- Topic: First flowcode program
- Replies: 9
- Views: 6623
Re: First flowcode program
Hi there Thanks for your replies. Changing the did not appear to work. I worked as it did before. I saw you had added some extra lines regarding the config words and I tried playing about with these but could not get it to work. I also tried swapping the PIC for a PIC18f458 with the same result. I t...
- Tue Jan 24, 2012 6:46 pm
- Forum: General Programming
- Topic: First flowcode program
- Replies: 9
- Views: 6623
First flowcode program
Hi there I have flowcode 5 and have been trying to get a very simple program to turn on an LED on a PIC with no success. PIC18F452 Hardware platform - SBC44B http://www.modtronix.com/product_info.php?products_id=109 Programming with a ICD2 programmer through MPLAB 10MHz crystal I have attached the f...