Quantcast
Channel: MEL PICBASIC Forum
Browsing all 4790 articles
Browse latest View live

Programming several PICs on same PCB board

My current project involves using 3 PICs; PIC18F14K50, PIC18F26K42, and PIC16F18426...all on the same board. Can I install jumpers between the PIC's Vpp and the IDC 4 / PICkit3 (etc) ICSP header? The...

View Article


Image may be NSFW.
Clik here to view.

HTML and PIC communication

I am trying to understand how can a PIC communicate to an HTML page for displaying and receive data. Say that on the HTML page there is a text box to enter a value and a button to send this value to...

View Article


Pickit 2 and 3 Standalone IDE

Long time ago I used the standalone IDE for the Pickit2 and Pickit3 but the program was a bit buggy. Now, Evan at http://pickitplus.co.uk/ has developed his own IDE that is identical to the old one. As...

View Article

Image may be NSFW.
Clik here to view.

Si4702 FM Radio chip

Hi Guys :) Has anyone done anything with one of these, and/or shared code? I can’t find anything in a search. It looks to support i2c and SPI despite not using either of those terms in the data sheet....

View Article

Flyback/forward power supply using comparator and hpwm/timer, possible?

Hello. I have a following idea. Say we have hpwm configured to deliver 30khz. It drives external mosfet which operates flyback transformer to deliver 170V 10mA at output. Rectified output is fed to...

View Article


pic16f876a-i/sp replacement

I'm looking for a pin compatible processor with lots more memory to be used in an existing project

View Article

error collection with try or catch

Within PBP3.0 is there any type of error collection like with a try or catch type statement? Thanks George

View Article

7-Seg display not counting

Hi All, I have a 3 digit 7-seg LED display and this works fine, but it's only display the ones... I'm missing the tens and hundreds. If I make W1 = 123, then it's show 123 on the display! Thanks, W1 =...

View Article


PIC 18F2431 PORTB.6 and 7 - strange behavior on restart after a few hours "rest"

Hello everyone, I have made a little circuit based on a 18F2431; it's un circling dot on a 8x8 LED matrix. My code below works well BUT when I restart my circuit after a few hours "rest" (= no power on...

View Article


18F66K80 adc

OK i'm confused by the 12 bit adc register settings.. I've got the pic adc working but is it optimal? I'm trying to avoid using defines but am using adcin... Processor is running at 64mhz My current...

View Article

ANNEX ESP8266 basic announcement and invitation

Hi group, Its been a while since I made a post here as I have been busy as an informal beta tester on a new OS for the esp8266 (and future esp32) modules. I'd like to invite you all to check out ANNEX...

View Article

Can I change LCD enable bit to port A instead of Port B ?

Hello. Standard DEFINEs indicate that LCD enable port is Port.B and uses PortB.3 Code: ' Set LCD Data port DEFINE LCD_DREG PORTA  ' Set starting Data bit (0 or 4) if 4-bit bus DEFINE LCD_DBIT 0  ' Set...

View Article

PIC to PIC (3 digit LED display)

Hello, I'm sending a Word VAR (0-999) from PIC to PIC with 1200baud. But, the communications is not stable all the time. Like start_Up problems. The multiplexing of 3 digit LEDs works very well. Maybe...

View Article


Lcdout

Hi :) According to my calculations, this code works first go in PBP without even testing it :D If that’s found not to be the case, please let me know, and I’ll fix it. This was written in C, and ported...

View Article

Image may be NSFW.
Clik here to view.

LCDOUT Replacement

Hi :) This code can replace the code inserted by PBP whenever you use the LCDOUT command. The reasons to do so are for probably speed and memory savings. Also, since LCDOUT is meaningless in any other...

View Article


HPWM outputs only on two channels on PIC16F886, when it should do more.

Hello. PIC16F886 has 4 PWM channels. However, HPWM statement works only for first 2 - Ones at PortC. HPWM 0 outputs at PortC.2 and HPWM 1 outputs at PortC.1. However, HPWM 2 or HPWM 3 which are...

View Article

need a low frequency pulse out while still performing serial comms

I have an application which will need to product a low frequency pulse ranging from 1hz to 6 hz. I need this output to be operating in the background because the PIC18F4680 will also be handling...

View Article


Generate a non-blocking pulse with an Interrupt Service Routine

Saw a similar thread (http://www.picbasic.co.uk/forum/showthread.php?t=24119) and it was a very timely question. A project I'm working on has a somewhat similar pulse requirement and I have been asking...

View Article

I2CREAD/WRITE Clarification

Hi :) I’m having some trouble interpreting the manual for these two commands. I’ve always fully populated the command arguments when using it, and incremented the address until maximum. For reading...

View Article

Si4703 FM Radio DDS Hack

Hi :) This is my most recent 16F628A controller code for Silicon Labs Si4703 FM radio chip. This chip gets it’s watch crystal disconnected, and it’s clock input (RCLK) taken from the 16F628A via a...

View Article
Browsing all 4790 articles
Browse latest View live