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

Strange Behaviour with Conditional Compile

With the line "#DEFINE USE_LCD_FOR_DEBUG" commented out the chip works perfectly; the PWM duty cycle sent to the SN754410 driver spins up the attached motor slowly and the trim pot attached to ADC 1...

View Article


Another way to left shift a 32 bit data?

Looking to left shift as fast as possible a 32 bit variable by n times. Obviously the first thought is by a PBP for-next loop n times. Slow. The second thought in Assembly loop. Much faster. Any other...

View Article


Inicializing to Interrupt World

Hello Everyone, I'm trying to inicialize in programming with interrupts. I've read lots of posts and try to adapt my way. Here is my sample code (PIC 16F628A): Test1: Pause 500 ' Wait for LCD to...

View Article

Port Error, Someone tell me something

Hi my friends, I wrote my very simple program with pic basic pro version 2.6 and something went wrong. please check it my code TRISB=0 Main: PORTB = 7 PAUSE 200 PORTB = 0 PAUSE 200 GOTO Main END I put...

View Article

ds18b20 and CRC check

Good day to all of you in the forum. I wrote a picbasic code that allows me to read the temperature from about nine DS18B20 sensors. I just read the temperature from the 18b20 but I do not read the crc...

View Article


pbpl var array

In order to save code, I'd like to do for n...next n cicle using classic var(n) to deal with 10 or more variables with same process. But I don't know if it is possible. Is there a way in pbpl of...

View Article

Image may be NSFW.
Clik here to view.

BASIC is NOT dead!!

OK BASIC aficionados! Listen up here... :D This is, to me, a game changer! If you are interested in the little ESP8266 modules you just HAVE to check out www.esp8266basic.com over on his (mmiscool)...

View Article

Avoid HSEROUT command?

Hi, I'm using a PIC18F2331 running at 40MHz and my program is quite heavy, the µC got a lot of work to do with a lot of interrupts. I usually use the HSEROUT command for sending 8 variables to my PC...

View Article


Help with word variable

Hi Guys, I've been having a lot of issues with a project to produce a single channel version of a pulse proportional thermostat that uses PID routines developed in conjunction with the Late Darrell...

View Article


Setting RTC by Serial input

Hi all, Heres a code example that i have used to set an RTC by a serial input, its probably not the most efficient code, but it works and could help some of you out It converts the Decimal input to BCD...

View Article

Issues with new project - hardware or software ?

Guys, need some help. I'm working on a project of a single channel pulse proportional thermostat. For those that may not know, I already have a four channel version which has been running in various...

View Article

fractional code

Excuse me for it is an elementary item. I have to divide a pair of two digit integers and handle the result (decimal with fraction) just two digits fractional. Then multiply this last with a...

View Article

Image may be NSFW.
Clik here to view.

BLDC-Motor Principle

Dear Friends, Herewith is a principle method of a BLDC motor. Would you please give me clues how to write down a PBP program for handling this issue "Rotating A BLDC motor" ? Or maybe a generously...

View Article


Image may be NSFW.
Clik here to view.

Cooking (kitchen) Timer - Xtal or Resonator both too "slow"

Attachment 8108 Hi All, I've finished a cooking-timer (or kitchen-timer, as you like...) program and circuit. I made two prototypes up to now; the first equipped with a Xtal and the second with a...

View Article

RTC - Strange readings

Hi guys, I'm running a DS1307 and have experienced some strange jumps in time that has been replicated by a friend using his own development board. When the system is first powered up the clock...

View Article


Image may be NSFW.
Clik here to view.

38Khz IR carrier - best way to turn it on and off

I bought my wife a Roomba for Christmas. The one I got has one 'virtual wall' with it. The virtual wall allows you to place it inside a doorway, for example, and it emits an IR signal the the machine...

View Article

RTC take two

I thought I would start a new thread as the other one based on the RTC giving strange readings seems to be something with the BDC conversions. I have tried the following to set the time / date to a...

View Article


Displaying and scrolling large amount of text on 8x14 led dot matrix display?

Hello! I'm building a custom stereo spectrum analyzer for home system. It will have 8x14 led dot matrix display. Having such nice display inspired me to use it for showing additional data, such as name...

View Article

Port alias in Port Expanders (MCP23S17)

Hello to All- I am trying to do something and I just can't break through the fog to see how this may be accomplished; Assign an alias to a port pin on a port expander. I know how to do it with a...

View Article

Image may be NSFW.
Clik here to view.

Strange WRITECODE behaviour

Dear Sirs, I'm facing a strange behaviour using the WRITECODE statement. Basically I've done a bootloader that starts at $17680 (using PBP) and when it detect it is time for a firmware upgrade it does,...

View Article
Browsing all 4743 articles
Browse latest View live