Search found 1570 matches

by kersing
Mon Jan 28, 2013 11:10 pm
Forum: General Programming
Topic: Direct Drive of Relay Board ?
Replies: 8
Views: 4017

Re: Direct Drive of Relay Board ?

One pin is limited to 25mA. So 160mA will not work.
by kersing
Mon Jan 28, 2013 10:41 pm
Forum: E-blocks
Topic: programming pic microcontroller
Replies: 22
Views: 13381

Re: programming pic microcontroller

I would add a 100nF capacitor between 5V and GND at both 11/12 and 31/32 and one 10uF for the total circuit to stabilize the power supply. Have you checked (with a multimeter) the 5V pins are actually getting 5V and the GND pins are connected to the power supply GND? I am asking because some breadbo...
by kersing
Mon Jan 28, 2013 10:30 pm
Forum: General Programming
Topic: Direct Drive of Relay Board ?
Replies: 8
Views: 4017

Re: Direct Drive of Relay Board ?

Moved this from the tips & tricks forum as it is clearly a question. To answer your question, you should check two numbers. The first one is the current for any port (25mA for this chip) and the next one is the total current (all ports) which you found. Given the individual port current of 20mA is w...
by kersing
Mon Jan 28, 2013 9:32 pm
Forum: E-blocks
Topic: programming pic microcontroller
Replies: 22
Views: 13381

Re: programming pic microcontroller

I think you need to post your circuit diagram if you want us to help solve this puzzle.
by kersing
Mon Jan 28, 2013 7:32 pm
Forum: E-blocks
Topic: programming pic microcontroller
Replies: 22
Views: 13381

Re: programming pic microcontroller

Have you connected power to both pin 11 and 32 and ground to both 12 and 31?
by kersing
Sun Jan 27, 2013 6:57 pm
Forum: Flowcode V5
Topic: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Problems
Replies: 10
Views: 7763

Re: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Prob

Have you considered changing the Start code of the LCD component? Right click on the LCD component, select 'Custom code', select 'Start' in the list of component macro's and click the button 'Edit Code'. Now you are able to change the C code in the macro. By updating this macro (and using RawSend) y...
by kersing
Sun Jan 27, 2013 3:58 pm
Forum: Flowcode V5
Topic: PIC 18F Internal CAN - Inverted CANTX2 Pins
Replies: 2
Views: 2036

Re: PIC 18F Internal CAN - Inverted CANTX2 Pins

Quoting the Microchip data sheet: "The CAN module uses the RB2/CANTX and RB3/ CANRX pins to interface with the CAN bus. The CANTX and CANRX pins can be placed on alternate I/O pins by setting the CANMX (CONFIG3H<0>) Configuration bit. For the PIC18F2XK80 and PIC18F4XK80, the alternate pin locations ...
by kersing
Sun Jan 27, 2013 12:47 pm
Forum: Flowcode V5
Topic: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Problems
Replies: 10
Views: 7763

Re: EB-005-12-3 and PIC18F26K80 with DEM20286SYH-LY LCD Prob

In your (revised) schematic there is the DEM20 4 86SYH-LY, your message subject states DEM20 2 86SYH-LY. Which one are you using? Anyway, when looking at the 4 bit initialization sequence for DEM20486SYH-LY (data sheet you attached, page 13) and for the LCD on the Eblock (page 46) there seems to be ...
by kersing
Sun Jan 27, 2013 12:42 am
Forum: Flowcode V5
Topic: tqfp packages and capacitive coupling
Replies: 17
Views: 10098

Re: tqfp packages and capacitive coupling

What kind of solder have you used for the board? Could it be flux from this solder creates capacitive bridges between the pins?
by kersing
Sat Jan 26, 2013 1:42 pm
Forum: General Programming
Topic: PID project
Replies: 17
Views: 11525

Re: PID project

Flowcode 5.5 has been released earlier today... See this message for details on upgrading.
by kersing
Sat Jan 26, 2013 11:53 am
Forum: Flowcode V5
Topic: tqfp packages and capacitive coupling
Replies: 17
Views: 10098

Re: tqfp packages and capacitive coupling

it appears to be traced back to chip pins, here are two examples ... when using i2c with 1k pullups and 10k pulldowns the clock cuts into the sda line at certain periods The I2C pins are RC3 and RC4? Those are 'miles' apart on the chip, so it seems unlikely to be related to capacitive coupling at t...
by kersing
Sat Jan 26, 2013 10:15 am
Forum: E-blocks
Topic: EB039 USB232 issue
Replies: 5
Views: 4482

Re: EB039 USB232 issue

In my experience with serial connections (and the connection between the 16f877a and the EB039 is a serial one) unreadable data is usually caused by components using mismatched speed settings. If you run the test a couple of times do you receive the same data or do you get random data? Could you set...
by kersing
Sat Jan 26, 2013 10:04 am
Forum: General Programming
Topic: Can't get Flowcode5 to work with Pickit3
Replies: 14
Views: 7949

Re: Can't get Flowcode5 to work with Pickit3

1) To rule out a hardware/driver issue, can you successfully use PICkit3 on your laptop with the Microchip software (MPLAB) to program this chip? (If you have not tried, in MPLAB you can import the HEX file Flowcode generated to program it to your chip) 2) Have you taken your project back to the des...
by kersing
Fri Jan 25, 2013 11:08 pm
Forum: E-blocks
Topic: EB039 USB232 issue
Replies: 5
Views: 4482

Re: EB039 USB232 issue

Have you set the clock switches correctly (XTAL and FAST)? And is the default crystal fitted onto the EB006?
by kersing
Tue Jan 22, 2013 5:15 pm
Forum: Flowcode V5
Topic: ADC Vref question
Replies: 12
Views: 6406

Re: ADC Vref question

Have you connected a reference voltage to the Vref+ input of your PIC? If not you will need to do so to make the Vref setting work. Make sure the voltage applied to Vref+ does not exceed Vdd and the voltage difference between Vref+ and Vref-(or Vss if set to Vref+) meets the specifications for your ...
by kersing
Sun Jan 20, 2013 10:03 pm
Forum: General Programming
Topic: PWM using Flowcode V5
Replies: 24
Views: 15318

Re: PWM using Flowcode V5

There are several solutions for light level detection. One (simplest?) is to use a LDR connected to an analog input. Use the ADC component to read the input. Wiring: 5V ------------ LDR ----+------- Resistor ------------ GND | PIC analog in Resistor value depends on LDR characteristics. Try differen...
by kersing
Sun Jan 20, 2013 9:56 pm
Forum: Flowcode V5
Topic: Advice Sought: Flowcode V5 with ICD3 ?
Replies: 10
Views: 8267

Re: Advice Sought: Flowcode V5 with ICD3 ?

Though not entirely essential, it would make sense that we embrace the ICD3 for Flowcode debug of assembled boards if possible. As far as I know Microchip and Matrix use a different debugging protocol. You will need to use EB006 or FlowKit (both with level shifters) for Flowcode debugging on PIC mi...
by kersing
Sun Jan 20, 2013 4:44 pm
Forum: E-blocks
Topic: EB006 documentation error?
Replies: 1
Views: 2534

EB006 documentation error?

While checking the EB006 documentation for compatibility with 16F1939 I noticed a small error on page 9. For the 40 pin socket pin 10 is listed: RE3/AN7/CS. Looking at various Microchip data sheets I think this should be RE2.
by kersing
Sun Jan 20, 2013 4:30 pm
Forum: Flowcode V5
Topic: Advice Sought: Flowcode V5 with ICD3 ?
Replies: 10
Views: 8267

Re: Advice please: Flowcode V5 with ICD3 ?

Brendan, I tend not to bother with switching Flowcode settings and use MPLAB IDE (v8.83) to upload the code with PICkit 2. The workflow is: - Compile to HEX in flowcode - Open MPLAB IDE (if not open) - Select correct device (Configure->Select Device. MPLAB recalls the last device used so only needed...
by kersing
Sun Jan 20, 2013 12:08 am
Forum: Flowcode V5
Topic: How to interface USB PC keyboard to PIC
Replies: 6
Views: 3945

Re: How to interface USB PC keyboard to PIC

The best match depends on your requirements. A possibility would be PIC24FJ64GB002. There are plenty of others. Depending on the power requirements of the other components in your design you might want to consider using a 5V device. The same 5V could be used for the USB bus. When using 3.3V PIC16 yo...
by kersing
Sat Jan 19, 2013 12:46 pm
Forum: Flowcode V5
Topic: How to interface USB PC keyboard to PIC
Replies: 6
Views: 3945

Re: How to interface USB PC keyboard to PIC

Enamul, If I understand your question correctly you want to connect a USB keyboard to a PIC. This means the PIC should be an USB host, a feature available in the 16 and 32 bit PIC ranges. If you want to use an 8 bit PIC for this purpose you will need to add an external USB host controller, the Ardui...
by kersing
Wed Jan 16, 2013 8:51 pm
Forum: Flowcode V5
Topic: how can i create a usb keyboard
Replies: 2
Views: 2411

Re: how can i create a usb keyboard

Get the Flowcode v5 Component examples. . The USB Human Interface (USB HID) component has an keyboard example. The easiest way is to use an ECIO-28 or ECIO-40. Looking at the USB component code and the FCD files the following chips should be supported: 18F13K50 18F14K50 18F2450 18F2455 18F2458 18F24...
by kersing
Fri Jan 04, 2013 12:36 pm
Forum: Flowcode V5
Topic: External Clock pic18f45k20
Replies: 9
Views: 4981

Re: External Clock pic18f45k20

Post 4 is trying to say:
- for this controller and external clock: set OSCCON is not needed.
- for other controllers it will probably be needed.
by kersing
Fri Jan 04, 2013 10:23 am
Forum: Flowcode V5
Topic: External Clock pic18f45k20
Replies: 9
Views: 4981

Re: External Clock pic18f45k20

That setting is only useful when using the internal oscillator (IRCF bits are for internal oscillator). For an external oscillator you do not need to set these bits.
by kersing
Fri Jan 04, 2013 9:24 am
Forum: Flowcode V5
Topic: External Clock pic18f45k20
Replies: 9
Views: 4981

Re: External Clock pic18f45k20

Generally speaking: OSCCON needs to be set. For this device the power on defaults are correct for external oscillator. If you want to use PLL Frequency Multiplier you will need to set OSCTUNE (to 0x40) to multiply the external clock by 4 (only available if the clock source in the configuration is se...