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

XC16 PSV constants

I'm having a go at programming a PIC24EP512GP806 bootloader with XC16. I need to define a few constants that the bootloader and application can both read. Here's what I've got so far Code: const word...

View Article


PICkitPlus - new Turbo mode

Even more great news from the PICKitPlus team. Sharing as soon as I could across the various forums. We now have improved the performance of the PICKitPlus Software. We have upgraded the software, and...

View Article


PICkitPlus - new Turbo mode

Even more great news from the PICKitPlus team. Sharing as soon as I could across the various forums. We now have improved the performance of the PICKitPlus Software. We have upgraded the software, and...

View Article

Bumpless Transfer PIC18F

I have a pic 18F project which has incoming data every 10ms in a word. The top nibble of the word high byte is flags, either %1111 or 0000 (we can ignore/mask them out) The lower 12 bits is a value...

View Article

Image may be NSFW.
Clik here to view.

Graphical Displays with PBP3

i wrote this graphics lib to handle led dmd's [1/4 scan dot matrix displays] in mono, red/green or rgb in varing sizes up to 128x32 pixels. it occured to me that with a little more effort it would make...

View Article


after reinstall cannot comile

I change computer and download PBP3.1,my license activation key is for PBP3.0,but it still can be activate,but when I try to compile,error code pop up saying source file is read only cannot...

View Article

What is software SPI speed for various OSC speeds?

Hello. I'm building a project, very fast counter using MAX7219 and 4 digit 7 segment display. It's image will be filmed by high speed camera. So I'm curious, since picbasic communicates with MAX7219...

View Article

12F1572 HPWM issue

Hi, HPWM work right on PORTA.1 . Also , the PORTA.5 work well like a digitall port. I want to move the PWM1 from PORTA.1 to PORTA.5 . Theoretically is very simple, must set APFCON.0 =1 . Now I have a...

View Article


Redefinition of Label error

Hi All, I wrote some code some years ago on an early version of PBP 3 for the P16F877A. That computer is long gone but I still have the code and tried to compile it recently using PBP 3.0.10.4 and...

View Article


Microchip SST26VF064B (64Mbit Serial Flash)

Hi All, I have some Microchip SST26VF064B (64Mbit Serial Flash) parts on order and, while I wait for their arrival, I'm wondering if any Forum users have experience using this family or similar with...

View Article

HT16K33 led 14 segment backpack

Hi folks, I want to ask members, someone has done working with this HT16K33 14. segment LED backpack in PBP. https://www.adafruit.com/product/1911 I am trying to get this thing live, but no success....

View Article

If ... THEN @ NOP

Could someone explain ... Code: IF ACLine == 0 THEN @ NOP          ' read Line input ENDIF THIS works ... Code: IF ACLine == 0 THEN @ NOP          ' read Line input THIS Generates an error ... Alain

View Article

12F675 vs 12F1840

I had a test program developed on 12F675 until my samples of 12F1840 arrive. Now I transferred the exact same code to the 1840 chip and the size of compiled code went from 547 words to 785 words. I...

View Article


16F1705 internal Opamp woes

Hi All, The title says it all. I'm trying to utilize the PIC's internal opamp rather than a separate opamp to measure load current on AN6 but I cannot get it to work. I've RTFM so many times I think I...

View Article

Dual PIC18F SPI Data Exchange Methodology.

I have two 8mhz hardware spi Master/Slave connected 26FK80 pics running at 64mhz cpu speed. All good. I am currently using SS Mode for the SPI. The PIC's both receive and transmit CAN packet data at...

View Article


reading / resetting timer0 in 16 bit mode

good day to all in this forum, I am using pic18f877 as a counter and I would like to use timer0 in 16 bit mode for reading an external signal. At the moment I am not able to read the whole 16 bit...

View Article

Crystal oscillator variability between PICs?

I have a timing critical application and am running an 8Mhz xtal with a 16F628a. When I program chip 1 with given HEX code (compiled with PBP), it runs roughly 23 ppm slow. I programmed a different...

View Article


RPM Sensing

This works but is much too slow to use with a gas engine 6,100 rpm Main: ' clear the variables and timer t1_count = 0 TMR1 = 0 : TMR1 = 0 ' not sure why I have to clear it twice PIR1.0 = 0 ' start the...

View Article

SHIFTOUT MSB/LSBFIRST clarification

good day to all in this forum, I am using PicBasic pro to load an 8 bit shift register and I wrote a very simple program like this: INCLUDE "MODEDEFS.BAS" DT var byte DT=128 ' decimal SHIFTOUT...

View Article

HSERIN issue with a 18F452 and IF THEN statements or Case statements

I am using PB3 and programming a 18F452. The code I am using waits for a "%" from HSERIN then grabs the next 4 characters and processes them. A "!" is sent and then a numeric value. Then a "?" is sent...

View Article
Browsing all 4787 articles
Browse latest View live