It will work fine - as long as the PICs are the only I2C devices on the bus. The I2C specification was written to deal with low-power devices that have no more than 2 mA drive. As a result, all the...
Type: Posts; User: Charles Linquis; Keyword(s):
It will work fine - as long as the PICs are the only I2C devices on the bus. The I2C specification was written to deal with low-power devices that have no more than 2 mA drive. As a result, all the...
I should also add that - when converting voltages, you gain a lot of accuracy from oversampling.
For example, if you need to multiply an A/D reading by 14, rather than take one sample and...
From time to time, I have seen requests for information about how a PIC - using only a positive voltage supply, can measure negative voltages.
In order to simplify things, I have created a...
I can understand the thrill of being successful at doing something new and hard - but don't you want to channel your efforts toward something that will produce a base for future work?
You two HAVE to be joking! Wouldn't it be much easier to read a SD card instead? There is even code available.
I'm having a strange problem when using PBP on my new laptop. I'm away from home now, and don't have access to all my resources.
I can compile using PBP (3.x) just fine.
When I try to use the...
I found part of the problem: The accelerometer is running at 2.5 V, the PIC is running at 5. I was using a Tiny Logic buffer to do the level shifting. The buffer was a Schmitt trigger type with a...
I'm using a PIC 18F8723 and Pin H.2 for SDI. It is tristated, and the external memory function is turned OFF.
I'm trying to talk to an accelerometer via software SPI, but can't seem to get the SHIFTIN command working.
iSDO = 0
AccRegister = $F
I needed a quick way to test hobby servos that didn't involve radios, etc. I had a PIC18F development board with an RS-232 port lying around, so I wrote a quick and dirty tester.
I'm providing...
For those of you who use 16F PICs and need more speed.
http://edn-mail.com/portal/wts/cemciv2d3U2Leeob7LEbsiuioi7-jd
The following code can be used or modified to do what you want. Everything is done in the background.
The good thing about it, is that it can be used on any port - not just port B.
And it will...
Although I have posted it before, the code below can be used as an example of referring to a port bit as a variable.
I use this code (or a variant) all the time to test new hardware.
Note that...
Here is a snippet of running code
INTCON = %11000000
'---------------------------------------------
Although what you want is possible, I can't think of why you would want to do such a thing.
If you have the original source, then you can find out where the routines are by looking at the ASM...
I like strings as well. All my projects have either RS-232 or Ethernet connectivity, and they all have
menus, user input, etc. I need to handle strings constantly.
I generally put all my...
Phoenix, AZ
About $1600 - Room + Conference + meals + transportation to/from airport.
Returned from the Master's conference last Sat. This was my first time, and I recommend it to everyone that can make the trip. Great hotel, and everything was taken care of (meals, transportation,...
PBP is fast for most operations, and if you need more speed in certain circumstances, you can just code in ASM.
But I don't think you will have luck decoding MP3 in software with any 8 bit chip....
A resistor will isolate the two. 2K is probably a good value. Anything larger may compromise the accuracy of Vref, but check the input current on the Vref pin for your device to make certain.
Darrel,
Darrel, I'm getting lamer and lazier every day. I have Proteus, but never got it to work with PBP. Do you have a 'quick-start' guide of some sort to get me started?
I am using a slight variant of the code I posted, and it is working fine. The only major change is that I'm sending a packet length byte, and I'm handling the entire receive packet inside the ISR....
Although my slave example may not be as robust as AN734, I have systems running that have 14 slaves running. All 14 slaves are polled on 2 second intervals. The master uses bit-banging (I2CWrite). ...
There really is not magic.
Connect your voltage reference (I use an LM4120-4096) to AN3. Make certain that you connect the GND of the reference to the PIC GND pins.
Also, you will need to...