Search found 1492 matches

by kersing
Mon Mar 19, 2012 11:25 pm
Forum: General Programming
Topic: writing and reading to an external eeprom
Replies: 10
Views: 2720

Re: writing and reading to an external eeprom

Hi Darren, The 24xx02 devices do not use the A0-A2 address lines so sharing the bus with another device can result in problems. Because the control bytes for the two devices you've mentioned differ you should be able to use them both on the same bus. In general the safest option for multiple devices...
by kersing
Mon Mar 19, 2012 11:28 am
Forum: General Programming
Topic: writing and reading to an external eeprom
Replies: 10
Views: 2720

Re: writing and reading to an external eeprom

According to the datasheet the sequence is as I posted in the previous message. Just use 00 for BB (block address). (Actually any value is valid as the block address bits are 'don't care') So to write a single byte: start 10100000b (wait for ack) word address <-- to address one of the 256 memory loc...
by kersing
Mon Mar 19, 2012 12:48 am
Forum: General Programming
Topic: writing and reading to an external eeprom
Replies: 10
Views: 2720

Re: writing and reading to an external eeprom

Darren, It would help if you specified which eeprom you are trying to use. What is the manufacturer and what is the type? Looking at the Microchip 24AA08 (random example) you would need to send (for byte write): start 10100BB0b where BB is a two bit page address (wait for ack) word address <-- to ad...
by kersing
Fri Mar 02, 2012 9:09 am
Forum: General Programming
Topic: LCD ECIO28 Random chars
Replies: 7
Views: 2621

Re: LCD ECIO28 Random chars

It feels like I have wasted a few cycles on a component that should just work (hence the lib etc), due to facts that may well be in the 455 datasheet but not the ecio28/40 datasheet. Hi Graham, RA5 use is documented in the ECIO documentation on page 3. In the diagram there is the USB led connected ...
by kersing
Sat Feb 25, 2012 6:53 pm
Forum: General Programming
Topic: Flowcode v4 port interrupts help
Replies: 13
Views: 4157

Re: Flowcode v4 port interrupts help

well the problem is, it's a traffic light situation and for example, I interrupt because a cyclist pressed a button at one of the traffic lights, now the interrupt should occur and all traffic lights should go red while the cyclist's light goes green. if I then return from the interrupt... it will ...
by kersing
Sat Feb 25, 2012 6:18 pm
Forum: General Programming
Topic: Flowcode v4 port interrupts help
Replies: 13
Views: 4157

Re: Flowcode v4 port interrupts help

Hi, On small PIC microcontrollers only one interrupt can be active at a time. As you are not returning from that interrupt new interrupts will be ignored. A solution for your problem would be to set a variable to a predefined value (a flag) in the interrupt routine and check for that value in the ma...
by kersing
Wed Feb 22, 2012 1:09 am
Forum: Flowcode V4
Topic: serial USB doesn't start
Replies: 27
Views: 7865

Re: serial USB doesn't start

Jan, According to the diagram in the ECIO data sheet on page 3, the LED is connected to RA5 on ECIO28P or RE2 on ECIO40P. Regarding the timers, I found no references to the timers in the Matrix supplied USB code for Flowcode 4 or 5. The Microchip data sheet of the 18F2455 does not refer to the timer...
by kersing
Sat Feb 18, 2012 5:10 pm
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 14692

Re: Convert voltage to Neg kg

The only problem is that if I return the scale to zero and the load cell goes a little negative “-1mV” the scale only shows 0 and not the negative value, So I thought of putting zero at 1V so that I can use the 0-1V to display the negative zero Return value. So your zero weight is at 1V and max wei...
by kersing
Sat Feb 18, 2012 11:55 am
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 14692

Re: Convert voltage to Neg kg

How can I make the AtoD read 1-4V as 0 - 1023 counts instead of 0-5V without using the Vref+ and Vref-. Or can you set the Vref+ and Vref- with the software. If you do not supply a reference voltage to Vref- and Vref+ the voltages used are the voltages used to power the chip (usually 0V and 5V). Th...
by kersing
Fri Feb 17, 2012 2:15 pm
Forum: Flowcode V4
Topic: UART between 2 PIC16LF88's
Replies: 37
Views: 9027

Re: UART between 2 PIC16LF88's

... but I am interested in the 1.8v of the LF88's to give me better battery life. Chris, Please note the data sheet lists 2.0V to be the minimum supply voltage for the 16LF88 devices. For 1.8 volt you will have to choose a different device. (You can use the product selector to find them) Regards, Jac
by kersing
Fri Feb 17, 2012 11:27 am
Forum: Flowcode V4
Topic: UART between 2 PIC16LF88's
Replies: 37
Views: 9027

Re: UART between 2 PIC16LF88's

Chris,

Early on in the thread you mention the 16LF88 being 2.5 to 3.3V only, that is not the case, they are rated 2.0 to 5.5V. For testing you can replace one of them with a 16F88 and feed the circuit 5V just like when you are using both 16F88 chips. Could you try that?

Best regards,

Jac
by kersing
Tue Feb 14, 2012 11:01 pm
Forum: Flowcode V4
Topic: UART between 2 PIC16LF88's
Replies: 37
Views: 9027

Re: UART between 2 PIC16LF88's

Chris,

When you are testing with the 16F88 you are using 5V I guess. Are you using 3V for the 16LF88? If so, would it be possible to test them with 5V to see if it makes any difference?

Regards,

Jac
by kersing
Sun Feb 12, 2012 2:54 pm
Forum: Flowcode V4
Topic: serial USB doesn't start
Replies: 27
Views: 7865

Re: serial USB doesn't start

Jan,

A successful sessions looks like this:
ecio-prog.JPG
ecio-prog.JPG (107.26 KiB) Viewed 6301 times


After choosing "Compile to Chip" I only hit the reset button on the ECIO. At that moment the highlighted lines (bottom of the window) appeared.

Regards,

Jac
by kersing
Sun Feb 12, 2012 2:41 pm
Forum: Flowcode V4
Topic: serial USB doesn't start
Replies: 27
Views: 7865

Re: serial USB doesn't start

Jan,

This is not normal. You should never have to press cancel. Once the programmer detects the ECIO the window will disappear by itself.

Regards,

Jac
by kersing
Sat Feb 11, 2012 11:24 pm
Forum: Flowcode V4
Topic: PIC16F88 vs PIC16(L)F88
Replies: 14
Views: 5318

Re: PIC16F88 vs PIC16(L)F88

But isn't that for external timing componentsthough? You are right. Given the conditions in the data sheet I was under the impression INTOSC would not work. However, some googling resulted in a couple of messages stating it should work. I just checked Flowcode 5, the 16LF88 is not listed among the ...
by kersing
Sat Feb 11, 2012 7:53 pm
Forum: Flowcode V4
Topic: PIC16F88 vs PIC16(L)F88
Replies: 14
Views: 5318

Re: PIC16F88 vs PIC16(L)F88

Chris,

Something completely different. Have you enabled brown out detect in the (expert) settings? If so you'll need to disable it as it will keep the chip in reset mode until the voltage exceeds 3.65V.

Regards,

Jac
by kersing
Sat Feb 11, 2012 7:41 pm
Forum: Flowcode V4
Topic: PIC16F88 vs PIC16(L)F88
Replies: 14
Views: 5318

Re: PIC16F88 vs PIC16(L)F88

Chris, According to the data sheet your osccon settings should be right. The chip settings are where the settings I mentioned earlier are configured. From the data sheet (and the additional information in Oscillator - PICmicro Mid-Range MCU Family ) my best guess is you need to select "EXTRC as...
by kersing
Sat Feb 11, 2012 2:15 pm
Forum: Flowcode V4
Topic: PIC16F88 vs PIC16(L)F88
Replies: 14
Views: 5318

Re: PIC16F88 vs PIC16(L)F88

Hi Chris, What oscillator mode are you using? When looking at the 16(l)f88 data sheet page 165 (chapter 18.1) in the conditions column it states "HS, XT, RC and LP Oscillator mode" for the LF version. If you are using the new (according to page 35) modes RCIO, INTIO1, INTIO2 or ECIO that m...
by kersing
Mon Feb 06, 2012 11:57 pm
Forum: Flowcode V4
Topic: Serious Warning: 'FCD_RS2320_RS232_Delay'
Replies: 6
Views: 2169

Re: Serious Warning: 'FCD_RS2320_RS232_Delay'

You are calling the listed macro from two places in your code. If both calls can occur at the same time the result is stack corruption. Check you code for calls to the macro. If two of your own macros call this macro or the main program calls it and one of your macros calls it you should make sure t...
by kersing
Mon Feb 06, 2012 11:43 pm
Forum: General Programming
Topic: TCP_IP Component
Replies: 3
Views: 1316

Re: TCP_IP Component

bogha wrote:sorry to post again but i couldn't rely to my last topic for reason i dont know.


Your last message has been moved to the Flowcode 4 forum (it is here) which requires you to register for that forum before you are allowed to post in it.
by kersing
Mon Feb 06, 2012 11:39 pm
Forum: General Programming
Topic: TCP_IP Component
Replies: 3
Views: 1316

Re: TCP_IP Component

how can i transmit a byte to a server listening to port 23456 for example i didnt understand the meaning of dst_port_hi and dst_port_lo any help please dst_port_hi = port / 256 dst_port_lo = port - ( dst_port_hi * 256 ) (equals dst_port_lo = port % 256) So for your example port of 23456 the values ...
by kersing
Wed Feb 01, 2012 8:37 am
Forum: General Programming
Topic: other LCD device?
Replies: 6
Views: 3419

Re: other LCD device?

There is a large choice of displays with all kinds off different interfaces available on the market. I do not think Matrix will be able to provide components for every one of them. If you use one of the LCD displays with a more or less standard electrical and command interface the provided component...
by kersing
Sat Jan 28, 2012 6:02 pm
Forum: Flowcode V4
Topic: DS18b20 don' work
Replies: 3
Views: 1422

Re: DS18b20 don' work

Have you made sure to use ds18B20 example code and not ds18S20 code? The two devices are not the same from a code point of view. (Examples for the ds1820 will not work as that device is equivalent to the ds18s20 with regards to code)
by kersing
Sat Jan 28, 2012 11:01 am
Forum: Flowcode V4
Topic: serial USB doesn't start
Replies: 27
Views: 7865

Re: serial USB doesn't start

Hi Jan, A flashing led signals the ECIO is running the USB bootloader. When you power on or reset the ECIO the first few seconds it runs the bootloader. While the bootloader is running flowcode (ECIOprog is the program doing it) can send new code to the chip. Once the code had been updated or a few ...
by kersing
Sun Jan 15, 2012 11:49 pm
Forum: Flowcode V4
Topic: serial USB doesn't start
Replies: 27
Views: 7865

Re: serial USB doesn't start

Hi Jan, In the W7 device manager I see the decive, COM6 in my case, but there is an error: the '!' is displayed on the device entry, and in the device properties it says: 'Device cannot start (error 10)'. Pressing the reset button on the EICO28 or unplugging and re-plugging the USB cable causes the ...