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 guess if you don't understand ASM then we are stuck, I've studied it now and too far down to go back now.
Wrote complete code in ASM, will look for different forum and help that can assist in ASM.
Thank you.
Yes, I want to save power, but WDT has max timeout of 2.3s, so will wakeup every 2.3s anyway. Then can sample IO's OR do I just set an interrupt on RB0 with a seperate routine?
Done that, this is how far I am now:
list p=16F628A
radix hex
org
;Definitions
STATUS equ 03h ;Set status address
TRISB equ 86h ;Set TRISB address
PORTB equ 06h ;Set PORTB address
;Initialisation
bcf STATUS,0 ;Make sure we are in bank 0
clrf 01h ;Address of the other...
I have built the circuit on a bread board, have everything ready, but still waiting for the programmer.
In the mean time I am trying to write some code to start with once I have the programmer.
Hi speedEC,
Ready to start writing some code, but not sure which route to take? Do I put the PIC in sleep or do I use the watcdogtimer to do my 8 hour loops?
When the PIC starts up TRISB will be set to 00000101, under normal operation RB0 will be low on start-up, the PIC should stay in sleep...
Any advice on buying a programmer? Completely confused after spending hours on the net ;)
**broken link removed** - is the PicStart+, DV003001
**broken link removed** is the Olimex
PICkit 3 looks ok, but will need an external development board or need to build it up?
Or maybe this one? MCUmall...
Thank you. The GSM module runs from same source as PIC 3.5V battery. But for some reason the IO's are at 2.8V CMOS with a max of 3.3V. I have made provision on the PCB for inline resistors between IO connections to compensate for the minimal voltage difference, but will run some tests without it...
Agree ;o) The IO's on the GSM runs 2.8V CMOS (Max 3.3V), so the 3.5V from the PIC is out of range. Inserted 10k resistors to compensate for the voltage difference, that ok?
Hi, thank you, understand the power part and will do that. But why the resistors on the IO's, those resistors will consume 3.5mA when high, which defeats the purpose of the power saving? The IO's I selected on the GSM module is internally pulled up with 47k resistors.
Thank you. Will do that.
C4, I use a 6800uF Aluminium Electrolytic 6.3V Capacitor, this is the supply line to the GSM as well and the current peak on that will be bigger.
I added the 0.1uF to the PIC supply, correct?
Herewith the updated drawing:
Herewith the updated Pins on FlowChart:
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.