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.
Product will be about 10k units. Wont be getting the micros pre-programmed, so we will be doing each on our line due to the fact there are other processes that need be done at same time. Boards are SMD.
Connection to board must be as quick and painless as possible. Ideally, there is no extra...
Anyone have any info how to compile from Notepad++? Ive got NPPExec but there is little documentation to show how design a compile script.
Thanks,
Alistair.
Re: best compiler for the pic
Agreed, its excellent, and covers all the low end devices (pic10f) which my next preferred compiler sourceboost does not. I really liked sourceboost because its got a reasonable IDE and very good debug emulator. Was forced to move to CC5x only because of...
Re: Data type - nibble
Thanks compiler does not like eg
typedef struct {char parthours:4;}nibble;
^------
Error[1] C:\PICdev\myjob.c 50 : Not implemented
(The syntax is not implemented. This can be a compiler limitation)
typedef unsigned int data1:4...
Data type - nibble
Hi due to limited PIC resources, I need to access nibble of the char data. Values do not exceed 15. Instead of continually shifting the bits can I define a new data type nibble? If so, can anyone suggest how. I'm using cc5x compiler.
Thanks,
Alistair.
Thanks for your advice. I guess in hindsight, that the best test is to power up the micro with the lithium battery and put a scope across the supply leads. If it shows signs on r/f at levels > 1mv then it would make sense to include a cap. I will advise. Al.
Hi all. In my earlier 8051 days, it was mandatory to bypass the supply pins on the micros with a .1 tant. I think this is not necessary now, as there is no mention in the application note for eg PIC10F series; just an inclusion of it in the brownout part, and the application notes do not make...
UPDATE I've fixed it below but decided not to use it after all!
Hi I wanted to do a wee hardware versioning trick - compiles OK but my numerics are not being resolved. Chip PIC10F - am getting nothing from the version field, which according to my cc5x info should be being stored in program...
Anyone can contribute to this thread recommending 3v high output led - I understand white tends to give out most light. Have found red to be well down on green. Most interested in suggestions of supplier for right angle high output low voltage led. Thanks.
Hi with WDT enabled;
OPTION=0x3f;
When GPIO change, there is no set bit eg only wakeup is by WDTtimeout:
After wakeup and pin change the following is always 0:
if (GPWUF==0) goto wdt;
Anyone?
Using MPLAB with PIC10F206/int 4Mhz osc, MPLAB stopwatch says 948.031000 ms to line>> if (++seconds>59) below.
It says 47.400000 ms >> if (part_seconds<20) return;
This should mean the onboard clock will run way too fast, but in fact it is running much slower than the MPLAB stopwatch...
Thanks I should have figured that, but how to make it start by running the defines etc before starting in main. It always wants to start inside main and bypass the start code. The only way I found today is to switch the SIM off eg go to simulator, pick none, then pick SIM again.
Al.
Those parts are in $ I am talking about parts in cents.
Al
Added after 2 minutes:
When replying to this post please consider that cost is mentioned in OP as critical. Also I suspect the interfacing an LDR to PIC would be very easy but open to other suggestions thanks. I suspect a photodiode...
MPLAB reset query
Hi when I halt execution, then reset the MPLAB sim, variables remain the same unless the memory is cleared - thats OK. But it will never start as if the chip has just been turned on, eg PC at first line of main(), unless I make PC from here in right click menu. I can rebuild...
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.