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

Image may be NSFW.
Clik here to view.

PIC18F67K40 DT_INTS that really work.

Code: '**************************************************************** '* Name : DT_INTS-PIC18F67k40.bas * '* Author : Darrel Taylor * '* Notice : Copyright (c) 2003 * '* Version : 1 * '* Date : JUL...

View Article


NRF24L01+ CODE Example for 1 to 1 data communication using same code on 2 PICs.

'************************************************* *************** ; This code allows for data communication between 2 NRF24L01+ ; modules running on a PIC microcontroller using the MSSP module. ; In...

View Article


Using parentheses for operation order when setting an IO pin?

Is there a way to wrap code in parentheses to set order when setting an IO pin? I have a number of IO pins I want to toggle based on a mode variable. Essentially only one pin will be low at a time...

View Article

ac 220v measurement with differential amplifier

hello guys, do anyone has example code of pic basic pro or proton basic for ac 220v measurement with differential amplifier method, this is reference link for example of design and c code...

View Article

Strange issue with SSR

Guys, I'm building a thermostat project that uses G3MB-202P solid state relays, and have a strange issue with one of these outputs. Basically 5v comes from the micro (in this case its an arduino) to...

View Article


DS1307 Problems help please !!! :-)

Hi Thank you for reading... Using a 16f627 All I want to do is turn a light on at a time and turn it off a time later.... What am I doing wrong here. Turns on OK but sees to add 4mins to the turn off...

View Article

Rotary encoder subroutine

Hello, I have the following subroutine which reads a 2bit gray code rotary encoder. This encoder has also a push button I need to use for other functions. The idea is to built a menu system to change...

View Article

Image may be NSFW.
Clik here to view.

How to use TM1637 chip for LED Display?

Hi All, For the past 10 days, I have been trying to make the TM1637 work with PBP 2.60C but till now I have not been successful. It's a real low cost module. The price of the TM1637 4-digit 7-segment...

View Article


Manufacturers send benefits

Hello,everyone.I'm Mike from PCBGOGO. We are mainly engaged in PCB prototyping and assembly manufacturing services for more than 10 years.Now in order to attract new customers, you can get a $20 coupon...

View Article


PIC16F18855 and DT elapsed timer

Hello to you all, As PIC16F876A become obsolete I decided to use PIC16F18855 to replace it, it is much cheaper than the old PIC16F876A and has more features. I implemented the code below (using PBP3)...

View Article

Image may be NSFW.
Clik here to view.

I2CRead problem

Very strange problem. Executing an I2CRead command does only I2CWrite as it is shown on the Logic capture. This is my test code for an 24C64 EEPROM Code: DEFINE I2C_SLOW 1 b1  var byte b2  var byte...

View Article

Image may be NSFW.
Clik here to view.

Why does PICkit2 show it as an LF device?

About a month back, I bought 5 pieces of PIC12F1840 (SOIC package) from Ali Express for $ 3.22. I am able to program them and run the code at 5 volts without any problem. But PICkit2 always identifies...

View Article

Image may be NSFW.
Clik here to view.

An Excel tool to get the byte values for 7-segment displays

When we design projects with 7-segment displays, we simplify the PCB design by connecting any pin of the port to any segment of the display. When we do that, arriving at the byte values for the digits...

View Article


MCPCB aluminum core pcb manufacturing cooper pcb prototype china suppliers

5 advantages Metal core PCB manufacturing huanyupcb.com 1. 15 years specializing in R & D and manufacturing of metal core PCB, 10000 square meter industrial park, Win a number of patents. 2. A full...

View Article

GOTO to a return in a subroutine amidst multiple If-Then's

Are there any caveats to using multiple GOTOs to a single return from within IF-THEN-ELSE's in a subroutine? I am using it to skip irrelevant code once the first condition is met. Example (for...

View Article


16f627a Loop issues

Help Please..... Thank you for reading I have a loop (Mainloop) that is looking at some RTC (DS1302) values and switching an LED depending on time of day. All is good as is. What I am attempting to do...

View Article

Pullup Configuration Help

Hi All Been a whilst since I played with this stuff ! Code:  ' Name      : WhiteLightClock.pbp ' Compiler    : PICBASIC PRO Compiler 2.6 ' Assembler  : MPASM ' Target PIC  : PIC16F627A ' Hardware    :...

View Article


Using the DMCI Tool

Hi everybody, Have some of you used (or tryied to use) the DMCI Tool (Data Monitor and Control Interface) ? It looks very promising with the possibilty to graphically modify and observe variables. But,...

View Article

Image may be NSFW.
Clik here to view.

18F87J50 I/O problems

After spending two fruitless nights on this I ask for help. After weeks of developing code on a PIC Clicker 2 with 18F87J50 I received the actual hardware on which the code is supposed to run on (which...

View Article

Image may be NSFW.
Clik here to view.

Excel tool to get the byte values for 7-segment displays- Version 2

Here comes Version 2 of the Excel tool that makes it very easy to get the byte values for 7-segment displays, irrespective of how you connect the port pins to the segments of the display. Highlights of...

View Article
Browsing all 4745 articles
Browse latest View live