Search found 33 matches
- Wed Jul 20, 2016 4:04 pm
- Forum: Flowcode V6
- Topic: PWM with dsPIC
- Replies: 0
- Views: 3718
PWM with dsPIC
Hi I'm trying to produce a variable frequency PWM on a dsPIC development board. It works all right if the duty and period are variables in the range 0-255, but if the period is a variable in the range 0-65535 then it appears to automatically reset in the 0-255 range. If The period is set to a fixed ...
Re: MIAC ROM
Hi Leigh My program has been running and logging to the SD card for just over 24hrs (over 200K data points) I've stopped it and looked at the data and it appears to be writing to the SD card alright. There are the occasional odd or missing figures, but I think this is to do with mis-read data on the...
Re: MIAC ROM
Hi Leigh
I'm running Professional Version V5.5.2.1.
Regards Dave
I'm running Professional Version V5.5.2.1.
Regards Dave
- Thu Nov 07, 2013 4:42 pm
- Forum: MIAC
- Topic: MIAC transistor output current
- Replies: 2
- Views: 3936
Re: MIAC transistor output current
Okay Leigh
Thanks
Dave
Thanks
Dave
- Thu Nov 07, 2013 3:17 pm
- Forum: MIAC
- Topic: MIAC transistor output current
- Replies: 2
- Views: 3936
MIAC transistor output current
Hi Can you confirm what the maximum output current is on a single transistor output? On the specification sheet table it is quoted as +/-500mA each channel with a total of +/-1.75A for all channels Under 'Maximum rating' it says Transistor Outputs (A,B,C,D) +-1.75A, which I would interpret as 1.75A ...
Re: MIAC ROM
Hi I connected inthe new MIAC today (V2) and downloaded my latest program (with the build set for a 32K system). It still told me that the FAT16 component and LED (0) were not connected when the program complied. The program appeared to log to the SD card on the serial expansion unit, but non of the...
Re: MIAC ROM
Hi Leigh I've modified the FCD file and re-started flowcode and then changed the build to the MIAC 32K System. I've tried compiling the code and I get a messages at the start telling me that "One of the pins of the component FAT16(0) are not connected to the microcontroller" or "One o...
Re: MIAC ROM
Hi Leigh Thanks for the reply. I think I will probably buy a new MIAC for this project then. Are all the new MIACs V2s, as the website still has the MIAC down as having the 18F4455 chip, or it the V2 a special order? The data on the website also says the MIAC has 12K of ROM when the compler report f...
Re: MIAC ROM
Hi I don't know much about C code, but looking throughthe complied C code there looks like there are lots of macros associated with functions for the MIAC unit and the add-on modules which I'm not using. Such as void FCD_MIAC0_RelayON(char RelayID) and the code immediately below it, and FCD_MIAC(0)_...
MIAC ROM
Hi Is there any way of increasing the ROM size in the MIAC. I'm using it with an advanced module and serial module and programming it in Flowcode 5. I think that because I'm using it with the add-on modules it uses up a lot of code space and the program so far uses 23332 bytes of ROM. Can the MIAC b...
- Wed Sep 25, 2013 1:59 pm
- Forum: MIAC
- Topic: Serial inputs on Advanced Module
- Replies: 9
- Views: 9324
Re: Serial inputs on Advanced Module
Hi Leigh I've got it to work and it works on both the Advanced and Serial Modules. I've had to increase the timeout to 500 as sometimes it misses the beginning of the string. It always puts a y (ASCII 152) in front of the string. Generally just one but sometimes two or more. If it puts in more than ...
- Tue Sep 24, 2013 6:08 pm
- Forum: MIAC
- Topic: Serial inputs on Advanced Module
- Replies: 9
- Views: 9324
Re: Serial inputs on Advanced Module
Hi Leigh - Thanks for the reply I'm trying to understand what the example does. Basically does it check if the character of the serial data is CR or timeout inwhich case it jumps out of the loop. If not then it goes round the loop reading the next chracter each time. Does it store the character in a...
- Mon Sep 23, 2013 5:26 pm
- Forum: MIAC
- Topic: Serial inputs on Advanced Module
- Replies: 9
- Views: 9324
Re: Serial inputs on Advanced Module
Hi Leigh I've tried putting a 500ms delay in at the start and it still does not work. I've set the timeout to 250 and it still does not work. I'm trying to figure out how to do the ReceiveSR232Char. The help and the example on the net are not very clear. Do I need to read each character individualy ...
- Fri Sep 20, 2013 8:48 pm
- Forum: MIAC
- Topic: Serial inputs on Advanced Module
- Replies: 9
- Views: 9324
Re: Serial inputs on Advanced Module
Thanks John
Attached are the zipped up log files
Regards Dave
Attached are the zipped up log files
Regards Dave
- Fri Sep 20, 2013 8:25 pm
- Forum: MIAC
- Topic: Serial inputs on Advanced Module
- Replies: 9
- Views: 9324
Re: Serial inputs on Advanced Module
I don't appear to be able to attach the .CSV files
- Fri Sep 20, 2013 8:22 pm
- Forum: MIAC
- Topic: Serial inputs on Advanced Module
- Replies: 9
- Views: 9324
Serial inputs on Advanced Module
Hi I am wanting to read the serial data put out from several sensors. The data is in the form of a 34 byte message ( H xxxxx T xxxxx Z xxxxx z xxxxx\r\n). I can read the data thyrough the Serial Module but not on the Advanced Module. on the advanced Module it only reads the first 6 bytes, and it doe...
- Thu Sep 19, 2013 3:40 pm
- Forum: MIAC
- Topic: Serial input voltages
- Replies: 2
- Views: 4030
Re: Serial input voltages
Okay Leigh
Thanks
Dave
Thanks
Dave
- Thu Sep 19, 2013 10:57 am
- Forum: MIAC
- Topic: Serial input voltages
- Replies: 2
- Views: 4030
Serial input voltages
Hi
I've been using the MIAC advanced and Serial modules with a 5V input.
I've now using a sensor with a 3.3v idle high output feeding into the serial modules but the modules don't appear to be able to read anything.
Is the voltage too low?
Do I need to raise the signal voltage to 5v?
Regards Dave
I've been using the MIAC advanced and Serial modules with a 5V input.
I've now using a sensor with a 3.3v idle high output feeding into the serial modules but the modules don't appear to be able to read anything.
Is the voltage too low?
Do I need to raise the signal voltage to 5v?
Regards Dave
- Fri Aug 09, 2013 3:44 pm
- Forum: General Programming
- Topic: CAN Macro within Flowcode5
- Replies: 1
- Views: 2397
CAN Macro within Flowcode5
Hi
Are there any plans to implement flowcode CAN macros to support 29bit identifiers, particularly when using the PIC18F2585/2680/4585/4690 chips with in built CAN functionality?
Regards Dave
Are there any plans to implement flowcode CAN macros to support 29bit identifiers, particularly when using the PIC18F2585/2680/4585/4690 chips with in built CAN functionality?
Regards Dave
- Wed Jul 31, 2013 4:02 pm
- Forum: MIAC
- Topic: Serial string in Hex to floating point number
- Replies: 10
- Views: 13515
Re: Serial string in Hex to floating point number
Hi Benj I have now got it working with the standard compiler. I was cycling home last night thinking about it and then realised that the byte values that were being used may be in the wrong format (decimal and not hex). I have now put 0x in front of the values and it works. To check it I've tried di...
- Tue Jul 30, 2013 12:17 pm
- Forum: MIAC
- Topic: Serial string in Hex to floating point number
- Replies: 10
- Views: 13515
Re: Serial string in Hex to floating point number
Hi Benj I modified my flowcode so that it convets the float value to a string and then prints the hex values and the float string on the MIAC screen. This works okay except the float value is 0.000000 as you are getting. I've downloaded and installed HITECH C Complier for PIC18MCUs (pro)v9.80 window...
- Mon Jul 29, 2013 10:37 am
- Forum: MIAC
- Topic: Serial string in Hex to floating point number
- Replies: 10
- Views: 13515
Re: Serial string in Hex to floating point number
Hi Benj Thanks for pointing out the typo. I too can now get it to compile and get the same answer of '0' As I don't understand the C code I can't comment on what's in the link. The data sheet for the sensor I'm using just states:- Floats are coded based on IEEE754 Bytes order should be reverted to &...
- Mon Jul 29, 2013 9:40 am
- Forum: MIAC
- Topic: Serial string in Hex to floating point number
- Replies: 10
- Views: 13515
Re: Serial string in Hex to floating point number
Hi Thanks for your assistance Dazz I'm still having problems. I put the code in as Dazz has indicated and created a short flowcode program just to prove out the code, but it won't compile. The error message is:- Hex to Float conversion.c(300): error: unexpected identifier Hex to Float conversion.c(3...
- Fri Jul 26, 2013 5:35 pm
- Forum: MIAC
- Topic: Serial string in Hex to floating point number
- Replies: 10
- Views: 13515
Re: Serial string in Hex to floating point number
Hi Please bear with me as I never done this before. I put the first section of code near the start of the main C code. (Build, then View C) At the start of the code there are a lot of #define MX lines. I put the first lot of code somewhere here? For the second lot of code I pull in a 'C' icon box, o...
- Fri Jul 26, 2013 12:40 pm
- Forum: MIAC
- Topic: Serial string in Hex to floating point number
- Replies: 10
- Views: 13515
Serial string in Hex to floating point number
Hi I am reading in a string of serial information from a sensor via the RS232 link (24 bytes). The information is in hex with packets of data in bytes of 4 (eg 42 47 71 05), and are in the IEEE754 format. I want to convert this to a floating point number. There is a StringToFloat function in Flowcod...