Author |
Message |
Topic: Has anyone got a low power 5v PIC 240v Switching PSU Design? |
adrian
Replies: 8
Views: 7502
|
Forum: General CCS C Discussion Posted: Thu Oct 09, 2008 5:41 am Subject: Has anyone got a low power 5v PIC 240v Switching PSU Design? |
I have stripped out the internals of a phone charger power supply for a one-off product of mine - obviously not an option if you want a mass production production. Just an option? |
Topic: millivolt thermostat interface |
adrian
Replies: 21
Views: 29553
|
Forum: General CCS C Discussion Posted: Mon Oct 06, 2008 5:52 am Subject: millivolt thermostat interface |
I think one terminal is connected to a pull up resistor and then sensed by the on board Atmel Microcontroller and the other terminal is ground. Dan
A pull-up resistor is often used to detect a burn ... |
Topic: Design Help |
adrian
Replies: 13
Views: 10422
|
Forum: General CCS C Discussion Posted: Wed Aug 20, 2008 5:46 am Subject: Design Help |
OK I can see what you are trying to do - but I also foresee lots of problems.
I take it the 'reverse line' is what brings on the reversing lamps and klaxon when the lorry is reversing?
So you are ... |
Topic: Driver For SHT75 Temperature & Humidity Sensor |
adrian
Replies: 33
Views: 282526
|
Forum: Code Library Posted: Thu Jul 10, 2008 5:32 am Subject: Driver For SHT75 Temperature & Humidity Sensor |
i've just tried your code with a 16F876A and a SHT11.
it's working fine, i've just got 28°C instead of 25°C i guess it's normal (tolerency).
I have been bitten by this one myself recently. I [spam] ... |
Topic: 18f452 interface with spi flash device |
adrian
Replies: 8
Views: 10244
|
Forum: General CCS C Discussion Posted: Tue Apr 29, 2008 5:35 am Subject: 18f452 interface with spi flash device |
Well, now I've heavily modified the code that I was given to begin with, and it turns out that I think our flash is bad :-/
Anyone with experience with these modules? I'm getting a constant 36 mA ... |
Topic: Programming connections for two devices, one RJ |
adrian
Replies: 9
Views: 41090
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Fri Jan 04, 2008 7:55 am Subject: Programming connections for two devices, one RJ |
I can think of a way using a 6 pin header and a DPDT switch - but I have not tried it.
It also depends upon what your MCLR pins are connected to.
The pinout for ICSP is as follows:
1 Vpp
2 Vcc
... |
Topic: DAC(Digital to analog converter) |
adrian
Replies: 6
Views: 11807
|
Forum: General CCS C Discussion Posted: Wed Nov 28, 2007 6:27 am Subject: DAC(Digital to analog converter) |
If you want to start with the basics try here:
http://www.analog.com/library/analogDialogue/archives/39-06/Chapter%203%20Data%20Converter%20Architectures%20F.pdf |
Topic: Code improvement !!!! |
adrian
Replies: 5
Views: 5574
|
Forum: General CCS C Discussion Posted: Wed Oct 10, 2007 5:34 am Subject: Code improvement !!!! |
I may be missing something here, but what happens if you enter this code with a value of 0x0F?
// here starts the rewritten part
if ( (data2 & 0x0F)==0x0F) // lowest nibb ... |
Topic: 12f629 reset problem |
adrian
Replies: 3
Views: 4688
|
Forum: General CCS C Discussion Posted: Fri Oct 05, 2007 5:47 am Subject: 12f629 reset problem |
OK there are a number of things wrong here.
In my circuit i have connected switch to pin no. 4 and LED at pin no. 5 And using internal MCLR.
and
But sometimes the microcontroller not reseting ... |
Topic: 12F675 - Interrupt does not work |
adrian
Replies: 3
Views: 4837
|
Forum: General CCS C Discussion Posted: Thu Oct 04, 2007 5:39 am Subject: 12F675 - Interrupt does not work |
INT_RA refers to a digital change on the input pin - not analogue. |
Topic: Modbus protocol creating trouble for 16f628A chip |
adrian
Replies: 3
Views: 10036
|
Forum: General CCS C Discussion Posted: Fri Sep 28, 2007 5:36 am Subject: Re: Modbus 16f628A |
#define MODBUS_SERIAL_INT_SOURCE MODBUS_INT_RDA
#define MODBUS_SERIAL_TX_PIN PIN_B0 // Data transmit pin
#define MODBUS_SERIAL_RX_PIN PIN_B1 // Data receive pin
Tx is on the wrong pin to ... |
Topic: Need Help on PIC16F877A |
adrian
Replies: 10
Views: 7128
|
Forum: General CCS C Discussion Posted: Fri Sep 14, 2007 5:59 am Subject: Need Help on PIC16F877A |
Hmm two posters with the same problem - must be homework time!
delay_ms(1000), will not work as you have found out.
You can only use delay_ms() with a 'variable' with a value of upto 255. I sugges ... |
Topic: 16F677 and v3.249 |
adrian
Replies: 3
Views: 5405
|
Forum: General CCS C Discussion Posted: Thu Jun 21, 2007 5:37 am Subject: 16F677 and v3.249 |
Sorry I was having a bad day yesterday.
What confused me was the fact that the 16F677 shared a data sheet with other devices which did have .h files in v3.249. I should have read Appendix A in the ... |
Topic: 16F677 and v3.249 |
adrian
Replies: 3
Views: 5405
|
Forum: General CCS C Discussion Posted: Wed Jun 20, 2007 5:41 am Subject: 16F677 and v3.249 |
I was hoping to start a new design using the PIC 16F677, however the .h file is missing from my copies of PCM v3.246, v3.248 and the final v3.249? Whilst I await a reply from CCS - anyone got any brig ... |
Topic: PIC16F877 Analog/Digital Inputs |
adrian
Replies: 2
Views: 4360
|
Forum: General CCS C Discussion Posted: Thu Apr 05, 2007 5:36 am Subject: PIC16F877 Analog/Digital Inputs |
One way around this type of problem is to read the analogue voltage of the digital input, then compare the analogue reading with the expected equivalent logic high/low digital value. |
|