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

1936 ra.7 i/o ???

So I’m stumped over this one. Using a PIC16F1936 on a lighting project. Trying to run some simple code to blink A.7, A.6, C.0, C.1, C.2, …….. All lights are blinking except PortA.7. Code: ;    MPASM...

View Article


16F887 - PORT pins interfere with each other when set high/low

Hello. Run into strange problem. I have button connected to PORTA.0 (pulled up to 5v via 10k resistor) and buzzer to PORTB.7 Below is the shortened code. Code: OSCCON=%01110101  'SET INTOSC TO 8MHZ...

View Article


Array variable access time

I posted this question on another website but did not really get a straight answer. If I have an array of 32 bytes defined in a variable SINB, and I execute the command "ampvar=SINB[lookbyte]", does...

View Article

Speeding up a loop?

I'm trying to generate multiple audio tones using a DAC/resistor ladder (currently 4 bit / 16 values - will scale up eventually), but am troubleshooting increasing the speed of this loop for a single...

View Article

Which is most common PIC chip, after 16F628A?

Hello. I'm doing another instructable, this time, LED clock. I'm using PIC16F886, because code is not well optimized yet, so it takes about 6K of memory. I will slim it down, but I'm afraid it won't...

View Article


4 -20mA Analogue input help

Hiya Just a quick one ....need to interface a 4-20mA signal to a pic I know I can do it with probably a 250R resistor and Opamp LM358 Wonder if anyone done anything similar Or any pointers / pitfalls...

View Article

DT-Interrupts - Is there a clash between ExtInt and IntOnChange?

Recently I completed a home project for controlling a light and a fan with an IR remote. Some relevant details are given below. PIC used: 16F689 - 20-pin device OSC: 8MHz PicBasicPro Version 2.60C...

View Article

Controlling OG-4 Decathron with PBP in an efficient way.

Hello, I'm adding an OG-4 decathron tube to my open source nixie clock project. It being run by separate PIC and own power supply. The tube has following pins, which are being driven by MPSA42...

View Article


Is it possible to make unidirectional serial port via 1 pin with PBP?

Hello. My OG-4 ugprade to nixie clock is almost finished. Now I want to connect it to main chip to receive mode selection statements. I have only 1 pin available on main chip, so will single...

View Article


Image may be NSFW.
Clik here to view.

Slowing down a clothes dryer

Hi folks, I need to slow down a conventional 220V clothes dryer to 1 rev/sec or a bit less. Is it possible to do that to these types of motors? My first thought was PWM, but this is most likely a 1/2HP...

View Article

Asm sleep - pbp sleep

My project uses a 16F1936 on both a Master and a Slave board. Durring the program the Master sends a code for the Slave to run a subroutine to SLEEP. I am trying to use ASM SLEEP as to NOT designate a...

View Article

Minsky algorithm

Accidentally I saw this site http://www.technoblogy.com/show?WNM About the middle of the page, there is an example of a 3D rotating cube by a tiny Atmel chip on a OLED screen. The code that rotates the...

View Article

PIC equivalent 80c51

HI, Like to dust off my picbasic on a new project....so wondering if there is a pin compatible PIC equivalent to the 80c51? It's a 44pin Quad flat pack. Hence ideally need somethign I can lift off the...

View Article


Problems programming a 10F206 PIC using the Melabs U2 USB Programmer

Hi All, Having programmed 12F, 16F and 18F parts over many years with Melabs USB programmer with no problems I am struggling trying to program a 10F206 chip. I get 2 error messages when trying to...

View Article

breadboarding

Hello all I am working with a Pic 16f628A, and can program it ( albeit I am primitive). I have a problem now where I am using the development board and writing a simple "Blink" program to flash an LED...

View Article


Setting 8Mhz clock speed on PIC16F684

Can someone kindly help me please? I am trying to make a PIC16F684 run at 8Mhz instead of the default 4Mhz. Problem is, test led's just keeping flashing at 10 secs... I have MPASM ticked as the...

View Article

Image may be NSFW.
Clik here to view.

Random Picture Thread

Attachment 8851 Saw this on a car forum. Attached Images  

View Article


Image may be NSFW.
Clik here to view.

Battery power back-uped circuit

Hello All, I'm making GSM alarm controller using a SIM800L GSM chip from SIMCOM. Since the project is about "monitoring" and "alarming", it is important ton ensure a redundant power feeding (= LiPo...

View Article

Image may be NSFW.
Clik here to view.

Assembly Interrupts for PIC 18F27K42

The attached file demonstrates implementing non-vectored interrupts in assembly for a PIC 18F27K42. For this exercise, Timer1 and Timer3 are configured to run concurrently and each generates an...

View Article

Tiny bootloader and pbp

hi guys , i would like to try to use the tiny bootloader and PBP to make the bootloader hex file , has anyone an example of how to make this work for 18f67k22 chip , or k40 chip series cheers sheldon

View Article
Browsing all 4787 articles
Browse latest View live