Search found 1570 matches
- Mon Jul 16, 2012 7:01 pm
- Forum: Flowcode V5 Free Edition
- Topic: Flowcode + MPLAB compile errors
- Replies: 5
- Views: 5093
Re: Flowcode + MPLAB compile errors
Could you try adding -N 50 to the compiler command line? This should increase the number of significant characters in the identifiers from the default 31 characters to 50 characters. (reference)
- Thu Jul 12, 2012 6:41 am
- Forum: Flowcode V5
- Topic: DS18B20 does not work with one-wire
- Replies: 2
- Views: 2459
Re: DS18B20 does not work with one-wire
Have you seen this message from Ben? It suggests RA0 might not be a good pin to use. Also, have you added a pull up resistor? And are you sure the code is designed to work with the ds18b20 or has it been written for the ds1820/ds18s20? The ds18b20 is not code compatible with the other two.
- Fri Jul 06, 2012 11:36 pm
- Forum: Flowcode V5
- Topic: integrating c code
- Replies: 41
- Views: 16231
Re: integrating c code
The ZIP file contains a number of files that provide the functionality needed by the main program. There are errors because the functions defined in the additional files are not being found in your code. You need to find some way to include the contents of those files in your application. One way yo...
- Mon Jul 02, 2012 11:20 pm
- Forum: Flowcode V5
- Topic: C-Error due to filename
- Replies: 9
- Views: 6129
Re: Error substracting 2 integers
(fout=error, resultaten=results) Are you using any C code, I think fout is a file command in C. John, As Jan stated, fout is the dutch translation of error. He was referring to the message at the bottom of the screen dump "Foutresultaten", "Error results" when using the English language setting. fo...
- Mon Jul 02, 2012 11:14 pm
- Forum: Flowcode V5
- Topic: C-Error due to filename
- Replies: 9
- Views: 6129
Re: Error substracting 2 integers
Jan,
A simple test program with just an integer subtraction works fine so it is probably something specific to your total program. PM the file if you want me to take a look.
Groeten,
Jac
A simple test program with just an integer subtraction works fine so it is probably something specific to your total program. PM the file if you want me to take a look.
Groeten,
Jac
- Sun Jul 01, 2012 11:27 pm
- Forum: Flowcode V5
- Topic: 18f2685 internal osc with pll
- Replies: 4
- Views: 4069
Re: 18f2685 internal osc with pll
im trying the get the 18f2685 set to 4 meg internal with 4x ppl, shooting for 16Mhz internal osc but can seem to get it to work as it default to 4Mhz... i set osctune to 0x40 (01000000) and osccon to 0x6e (01101110), what am i doing wrong and can you please explain it to me? Have you set the config...
- Fri Jun 29, 2012 4:12 pm
- Forum: Programming Tips & Tricks
- Topic: Link to all data sheets from Microchip: 16F, dsPIC etc.
- Replies: 1
- Views: 4943
Re: Link to all data sheets from Microchip: 16F, dsPIC etc.
Using the "Search Data Sheets" search box on the top right of pages on the Microchip website works nicely as well
- Sat Jun 23, 2012 6:32 pm
- Forum: Flowcode V5
- Topic: Stack Overflow
- Replies: 8
- Views: 7562
Re: Stack Overflow
Hi Jan, Are you sure you are interpreting the memory usage correct? The linker output suggests heap (RAM not used by global and local variables) is 76 bytes and at one point in the code you are allocating 75 bytes of it in one go. If you are not trying to allocate more before releasing the allocated...
- Sat Jun 23, 2012 2:23 pm
- Forum: Flowcode V4
- Topic: RA5 on 16f88
- Replies: 17
- Views: 11408
Re: RA5 on 16f88
To select different frequencies change the value of osccon. See chapter 4.6.3 of the data sheet for the bits in the register.
The osccon values are:
0x70 : 8MHz
0x60 : 4MHz
0x50 : 2Mhz
0x40 : 1Mhz
0x30 : 500kHz
0x20 : 250kHz
0x10 : 125kHz
0x00 : 31.25kHz
The osccon values are:
0x70 : 8MHz
0x60 : 4MHz
0x50 : 2Mhz
0x40 : 1Mhz
0x30 : 500kHz
0x20 : 250kHz
0x10 : 125kHz
0x00 : 31.25kHz
- Sat Jun 23, 2012 1:33 pm
- Forum: Flowcode V4
- Topic: RA5 on 16f88
- Replies: 17
- Views: 11408
Re: RA5 on 16f88
To set the oscillator you will have to use a C code block to set osccon to the desires value. For a 4 MHz clock enter the following in the C code block (remove all existing text): osccon = 0x60; Also in the processor configuration dialog of mikroProg set Oscillator to INTRC with both RA6 and RA7 as ...
- Mon Jun 18, 2012 8:55 pm
- Forum: Flowcode V5
- Topic: EEPROM (how works question)
- Replies: 2
- Views: 3136
Re: EEPROM (how works question)
question on how eeprom works with a **16f1938** ... when writing to eeprom i simply write to addresses 0-255 is that right? Correct. but i can only write 8 bit numbers to a location? if thats true why does it ask for a "uint" variable? .... Only 8 bit wide for 8 bit PIC devices like the one you are...
- Sun Jun 17, 2012 7:45 pm
- Forum: Flowcode V4
- Topic: Flowcode_PIC_16bit ICD failure to communicate with target
- Replies: 4
- Views: 4195
Re: Flowcode_PIC_16bit ICD failure to communicate with targe
Hi Ben, The solution to the problem was to set the ICD connections to PORTB_L 1 (clock) and PORTB_L 0 (data). Obvious once you know it... The settings for ICD might be something to mention in the manual for the EB064 or even better, FC could set the appropriate defaults depending on the target devic...
- Mon Jun 11, 2012 10:20 pm
- Forum: Flowcode V4
- Topic: Flowcode_PIC_16bit ICD failure to communicate with target
- Replies: 4
- Views: 4195
Re: Flowcode_PIC_16bit ICD failure to communicate with targe
Hi Ben,
Tried HS without PLL, with internal oscillator and several ICD speed settings, did not get it working
Best regards,
Jac
Tried HS without PLL, with internal oscillator and several ICD speed settings, did not get it working
Best regards,
Jac
- Mon Jun 11, 2012 9:34 pm
- Forum: Flowcode V5
- Topic: Program stops by itself
- Replies: 7
- Views: 4201
Re: Program stops by itself
Could you check "build" -> "project opties" -> "chipconfiguratie". What chip is listed at the top right?
- Mon Jun 11, 2012 7:46 pm
- Forum: Flowcode V5
- Topic: Program stops by itself
- Replies: 7
- Views: 4201
Re: Program stops by itself
Jan,
The only questionable message I see is that delay_us requires argument of minimal 1. Do you have a delay of 0 somewhere in your program?
Regards,
Jac
The only questionable message I see is that delay_us requires argument of minimal 1. Do you have a delay of 0 somewhere in your program?
Regards,
Jac
- Sun Jun 10, 2012 9:43 pm
- Forum: Flowcode V4
- Topic: Flowcode_PIC_16bit ICD failure to communicate with target
- Replies: 4
- Views: 4195
Flowcode_PIC_16bit ICD failure to communicate with target
Trying to use ICD with the EB064 board, PSU powered. Target is 33FJ128GP802. All attempts to use ICD, even with the simplest test flow (attached) to blink a led, fail with 'ICD has failed to communicate with the target'. The additional information window does not show anything wrong. fc16-1.JPG What...
- Sat Jun 09, 2012 7:38 pm
- Forum: Flowcode V5
- Topic: problems with the 18F2xJ50/ 18F14K50 USB
- Replies: 2
- Views: 3170
Re: problems with the 18F2xJ50/ 18F14K50 USB
Could you please post Flowcode 5 issues in the Flowcode 5 part of the forum?
- Mon May 28, 2012 10:05 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25142
Re: Clock will not start
Looking at the LCD component code I noticed there are two types of delays used. The %a_DELAY mentioned in the other thread, but also Wdt_Delay_Ms. This last delay is used a lot in the display functions like Start and Clear. Could it be the timing is off for these delays, resulting in the display not...
- Mon May 28, 2012 11:50 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25142
Re: Clock will not start
My understanding is that CLKOUT comes from before the PLL thus 1MHz is correct for 1). Looking at the data sheet (2.6) I do understand where you are coming from. However, it does not explicitly state this. And looking at figure 3-3 it seems to be the clock divided by 4. Have you noticed the PLL is ...
- Sun May 27, 2012 4:17 pm
- Forum: Article Discussion
- Topic: MX012 - Life on the PIC
- Replies: 4
- Views: 14904
Re: MX012 - Life on the PIC
It might be a good idea to document the hardware setting/connections for these articles as well. The component settings for the gLCD suggest the EB058 is connected to PORT_BL, however the settings for the EB058 jumpers/patches are not clear. I 'guessed' working settings from the Astroids video (EB05...
- Thu May 24, 2012 9:52 pm
- Forum: Programming Tips & Tricks
- Topic: Ultrasonic Distance sensor using HC-SR04
- Replies: 86
- Views: 188979
Re: Ultrasonic Distance sensor using HC-SR04
Ive just found a recommendation for a converter on amazon for about £20, Ive just ordered it. If it works it will make things a lot easier (Ok its not going to give blueray quality video but it should be fine for coding, and isnt going to break the bank) Will post findings when it arrives. Hi John,...
- Sun May 20, 2012 11:13 am
- Forum: Flowcode V5
- Topic: Simple Digital Thermometer
- Replies: 9
- Views: 8888
Re: Simple Digital Thermometer
Hi John, In your experience, what is the best device for calibration? I've tried digital thermometers but after having three of them within a couple of centimeters and all showing different temperatures (1.8 degree centigrade between highest and lowest) I've got reservations about using them as a re...
- Tue Apr 17, 2012 9:59 pm
- Forum: General Programming
- Topic: Accurate Pulse Counting
- Replies: 6
- Views: 4650
Re: Accurate Pulse Counting
Hi Graham,
Have you noticed the RA3 pin doubles as an active low reset (MCLR) pin? So you need to set the Master Clear Enable in the extended properties to Internal. Otherwise a low input signal will reset the chip.
Regards,
Jac
Have you noticed the RA3 pin doubles as an active low reset (MCLR) pin? So you need to set the Master Clear Enable in the extended properties to Internal. Otherwise a low input signal will reset the chip.
Regards,
Jac
- Fri Mar 23, 2012 11:17 pm
- Forum: Flowcode V4
- Topic: Please Help!!! Desperately needing guidance on Zigbee
- Replies: 9
- Views: 6274
Re: Please Help!!! Desperately needing guidance on Zigbee
How do i initialise the xbee using at commands? Start by downloading the "Product Manual" at the Digi website so you have a reference... Then take a shortcut by connecting the module to a PC and check the commands X-CTU sends to the board when you connect to the other module. There should be some "...
- Fri Mar 23, 2012 10:13 pm
- Forum: Flowcode V4
- Topic: Please Help!!! Desperately needing guidance on Zigbee
- Replies: 9
- Views: 6274
Re: Please Help!!! Desperately needing guidance on Zigbee
Just for anyone interested the xbee modules I am using are: http://proto-pic.co.uk/xbee-1mw-wire-antenna/ Hi, You are aware these are not zigbee modules? The description clearly states "These modules take the 802.15.4 stack (the basis for Zigbee) and wrap it into a simple to use serial command set....