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

2Mhz oscillator not allowed?

Like the subject says, does PBP3 not allow for 2Mhz oscillator speeds? I found one post from 2006 claiming this. I have a 16F722A set for 2Mhz but trying to compile anything gives this error Code:...

View Article


Image may be NSFW.
Clik here to view.

PS2 Mouse Interpreter

Hi Guys :) I’ve been playing with this PS2 Mouse to Amiga mouse port translator, so I thought I might as well wrap it in BASIC to compile it, and it can be used if needed. It’s essentially still...

View Article


issue with DEBUG, please help

Hello, I am having issue with DEBUG which output garbage when used in a program, but using the same hardware and same declaration for debug_mode, baud... works OK with a tiny test program and I cannot...

View Article

In Circuit programming / boot loader options?

Hi I need some advice. I have been using the MicroCode boot loader for several years with the PIC18F2550 and 4550. Now I need a chip with a 12 bit A/D ( maybe the 18F4553?) but I don't find any loader...

View Article

How to set and change Configuration Bits programmatically?

Dear Sirs, somebody knows how (and if) it's possible to change the values of the Configurations Bits from within the application writed in PBP (or PBP + ASM)? The chip involved in this scenario is...

View Article


Is it possible to change HPWM duty cycle without restarting the PWM generator?

Hello. I'm doing some experiments with music synthesis, using hardware pwm as tone source, and it's rectified duty cycle voltage as envelope generator. The issue is that for example, when I want to...

View Article

Dimming Thermostat - general questions

I'm considering developing a dimming version of my pulse proportional thermostat and would welcome some advice or comment on the following: I'm planning on using a PCA9685 16 channel PWM chip to handle...

View Article

Indexing DEC modifier

Hi, Is it possible to index the DEC modifier used in LCDOUT or SEROUT commands? I'm adjusting the number of digits on my 1x8 LCD and would like to avoid too many LCDOUT commands.

View Article


Hot tub temp control

I am considering building a hot tub with a standard 220v hot water heater element. I would use a 40 amp solid state relay to control power. I have never used a SSR before but think it would control...

View Article


Programing code - need a "best practice" advice

Hi, When I start a new project, I put on paper what the thing should do and how it should it. When it comes to write the code, I read my newly made flow-chart where I see the inputs, conditions and...

View Article

Using all ADC channels, 18F4550

I've read the datasheet and didn't see any issues in using all 13 ADC channels at the same time, but are there any gotchyas out there I'm missing? I need to cycle through them all, read the values and...

View Article

Homebrew Experimenter's Board

Hi All, After browsing the Micro Electronics Lab website and doing research on Google, I was inspired to design and build my own PIC experimenter's board. It will have the following: 40 Pin ZIF Socket...

View Article

18F45K22 Pull Up on PortE

It seems trivial but unortunately I cannot enable the Pull Ups on the Port E <0:1> of the 45K22. Here is my setup: Code: #CONFIG     CONFIG  FOSC = INTIO67        ; Internal oscillator block...

View Article


Hex values to decimal

Hello everyone .. We've got a pic based system that doesn't have an lcd and also which stores some values into EEPROM .. When we are done with collecting the datas into eeprom , we remove the PIC and...

View Article

PIC16F684 GPIO puzzles me

The PIC GPIO puzzles me. My requirement is to light up LEDs one after another with a slight delay and at the end of it all the LEDs need to glow. Below is the code that I wrote. void initPorts() {...

View Article


18F1320 and I2C

Hi All! I would like to use I2C with an 18F1320. It would be great to use pin 9 (RB1/AN5/TX/CK/INT1 and pin 10 (RB4/AN6/RX/DT/KBIO. In the past it seemed with some PICs could not use these pins. Can I...

View Article

How to Serial comm. wait for a string?

Hello guys, I wan't to try something but can't figure out how to do it... I want to connect a PIC to a raspbery over UART and want to send commands to PIC via serial using minicom. But I dont know how...

View Article


Image may be NSFW.
Clik here to view.

I2C EEPROM content flasher/eraser thru PIC

I made a flasher/eraser program for I2C EEPROM (up to 24C64) thru PIC (e.g. PIC18F4520, 32K). So far, I have always had a socket (DIL8) for external EEPROM on PWB so that I can remove EEPROM for...

View Article

I2C Smart Card memory

Usually I2C EEPROM's have defined address and this is found on the Data sheets. But I cannot find such data sheet regarding the Smart Card type I2C EEPROMS. Also on the cards there is no indication of...

View Article

Image may be NSFW.
Clik here to view.

trouble getting certain pins to act as digital on 18F2550

I have some code written that drives a stepper motor based on an encoder input. Actually there are two sets of encoder/stepper running on the same PIC. Their operation is totally independent. The...

View Article
Browsing all 4787 articles
Browse latest View live