Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I just finished this project that i came with after being tired of always adding small LED's and buttons on a breadboard, besides time consuming there was also the connections reliability.
So i came up with this friendly Proto I/Os board that has 8 LED's, 6 buttons, one buzzer and a DS1820...
Ok guys let's restart.
I think was chaching phantoms.
Ive writen the following and i can't get a precise 1ms routine.
Can someone tell me whats wrong ?
#include <pic12f1822.h>
/* Setup chip configuration */
__code int __at(_CONFIG1) __CONFIG = _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON...
Hy guys, i haven't had time in the weekend to look at it further and i haven't manage to get my hands on the oscilloscope at work, next week i'll post more about it.
Now i tried using TMR0 for PIC12F1822 and i got the same drift in time, next has a last attempt i tried the same code on a PIC16F88 with exactly the same result, here's the code :
#include "pic16f88.h"
#define LED RB3
/* Setup chip configuration */
__code int __at(_CONFIG1) __CONFIG = _CP_OFF...
So i applied what i learned from the previous link, i re-wrote my code, it compiles no problem but when i uploaded to the PIC nothing happens.
#include <pic12f1822.h>
/* Setup chip configuration */
__code int __at(_CONFIG1) __CONFIG = _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON &...
Can you tell us how are the contacts marked ?
Also you can just do it by trial and error, starting with only the first 3 terminals on the 6 terminal block, those first three will almost for sure do what you want.
I was thinking about that Venkadesh_M, its looks like that, like its adding 2 or 3 units its time it loops, left overs from the previous routine even thought it always loads the register in the beginning of each loop.
Anyway im going to use internal timer1, i can switch on and off whenever i...
That can not be the problem, i used mikroC first with their built-in delay_ms routine, what i wrote above is my own delay_ms routine with SDCC compiler.
The mikroC delay_ms routine worked perfectly.
Hello guys,
Im using a pic 12f1822 set up for the internal clock at 1MHZ.
So i used this delay code generator, and inserted into my C code, my problem is that i can see on the osciloscope that the clock is kind of drifting in time, i tried changing values around but im now stuck.
Here goes the...
I do solder with lead-free and after a while you get use to it, im actually pretty good at it these days, also the final joint soldered is not as "pretty", it wont be so shiny has in leaded tin.
I think Audioguru should just move on, its not a big deal.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.