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

hserin 100, main [flag] causing 18f24k22 to become unstabloe

I have a simple program shown below which works fine for about 27 loops, then i notice one of the variables, X is reset to zero for an unknown reason. After that, it will run for about another 27 loops...

View Article


Image may be NSFW.
Clik here to view.

Project - GSM Shield SIM900D + PIC16F877A

Hi there!..So this is my partial project for my research proposal on how I integrated my GSM Shield module, specifically the SIM900D, with the PIC16F877A microcontroller unit. In this project, I only...

View Article


Image may be NSFW.
Clik here to view.

SHARP GP2Y10 optical dust sensor

Hello, I wanted to create a simple air filter/purifier for my workshop from box fan and 3M square filters. For that reason I wanted to measure the dust particles in air. I found some infos about that...

View Article

Serial data transmission period

Guys, Need some advice for a bit of crude dirty code to send the time and temperature out via serial port. Code: main:                           OWOUT TEMPIN,1,[$CC,$44]     OWOUT TEMPIN,1,[$CC,$BE]...

View Article

hserin buffer fills before all characters can be read

I am interfacing to an Elo touch screen for a custom solution. The elo messages are suppose to always be 10 characters long and start with the character U. I want to be able to capture all 10...

View Article


Dual USART, Second USART sends but not receives, PIC18F24K22

My application is utilizing both USARTs for this chip. The primary USART is working fine. The second USART will transmit but will not receive. I sususpect I have an issue with the configuration. I did...

View Article

Decoding serial data bytes and nibbles.

I have a hex serial 15 byte data stream in a byte array. ED,1E,D2,EF,2E,D3,ED,2E,D2,EF,2E,D3,ED,1E,D2, It needs to be chopped up into 10 x 12 bit data blocks as below....

View Article

Help with PWM6 and PWM7 on 16F18857 ???

Hello all, I'm trying to get PWM6 and PWM7 working on the 16F18857, and unfortunately these two are not accessible with the HPWM command. I've got them set to 50% duty cycle and I believe set to...

View Article


First programming for 4 years. PBPP 2.6

Hi everyone. I am just about to do a favour for a friend, which involves a small programming job on a 12F508. Trouble is, I havent done anything in this field for 4 years or so. Consequently it appears...

View Article


HX711 driver code

Hi I have 18F452 pic . I want to use HX711 chip with 18F452 . I searched example code on the internet . But I cant find the example code that is written by pic basic Please help me

View Article

Parity & Stop Bits settings and results

In my serial application I am setting the second port to 9600 8E1. define HSER2_BAUD 9600 DEFINE HSER2_BITS 9 define HSER2_EVEN 1 DEFINE HSER2_CLROERR 1 These are the only DEFINEs I am using. I am not...

View Article

Help, please. Can't get things to work at all!

I am using PBP3 and a Minipro TL866 to program 16F6218a PICs on a breadboard. On the programmer, I set the configuration word to use the internal clock The Pics seem to program fine and read back fine,...

View Article

High Voltage, MCU controled 300Volt power supply

Looking for help on High Voltage Power Supply. Requirements are: Output 10-300 Volt/400mA Adjustable voltage and current (CV/CC) Display status on a LCD by means of a MCU that will control the P.S. as...

View Article


26K80 Configuration and Port C 0, 1

I'm moving from a 2680 to 26K80. The LCD in my 2680 code does not now work in the 26K80 code. I know this is related to port C 0,1 and a new function in the 26K80 SOSCEL I am trying to disable the new...

View Article

The book of dt interrupts

Returning to PICbasic after five years of working with BS2 in a number of K12 schools. It’s not a walk in the park to pick up where you left off. I’ve jump back in working with DT’s interrupts. I’m...

View Article


Rotary Encoder on 20x4 LCD with pushbutton digit select and other features

'************************************************* ****************************** ;* Name : PIC16F887.BAS ;* Author : CSANTEX ;* Date : ;* Version : DEFAULT ;* Notes :...

View Article

A bit of a math problem

I need to control 4 pumps in relation to the rate that the level of a tank is reducing. This could be solved with a derivative but there should be a better solution for an 8-bit humble PIC. There is a...

View Article


Good ol' 877

Good ol' 16F877 but getting on my nerves... Why this does work: Code: ADCON0 = %11000001 ' Set RC clock and enable ADC ADCON1 = %00001110 ' Set PORTA.0 to analog,left justify, rest digital TRISA =...

View Article

Managing registered machines on which PBP3 is installed

How do I manage my registrations so I can de-activate on a defunct machine to free up for new? Is there a web interface where I can manage my registered machines? Thanks

View Article

I2C fast to slow at runtime

This project requires a 100k device and a 400k device on the same bus. The I2C slow command appears to be compile only. Is there a way to change fast to slow and back again at runtime? Thanks.

View Article
Browsing all 4743 articles
Browse latest View live