Thanks for your tips.
I think the problem may have been in the computer terminal program. I tried a different baud rate - 2400 - and it all worked. I went back to the original 1200 baud and it...
Type: Posts; User: tbarania; Keyword(s):
Thanks for your tips.
I think the problem may have been in the computer terminal program. I tried a different baud rate - 2400 - and it all worked. I went back to the original 1200 baud and it...
I must not be thinking about this right. I need to send an "R", either a "2" or "4", and then a 4 digit decimal number from one PIC to another using hserin and hserouthserin and serout2. Ideally I...
I said in my previous post there is probably a more elegant way to write this code. I used a combination of shiftin and shiftout along with some bit setting and reduced the number of lines of code...
For my previous post I suggest replacing all the "pauseus 15" with:
call wate
And then add the subroutine;
wate:
pauseus 15
return
This should use less compiled code than having to...
After way too much time I got code that works with the MLX90614 temperature sensor. It may not be the most elegant but given the timing required by the SMBus this works.
I wish this sensor would...
I need to shiftin 16 bits of data from an A/D. I think the command should be:
shiftin datapin, clkpin, mode, [data\16]
I need the data to be read MSB first. Some code examples show using MSBPRE...
Below is code that will work to communicate with a DHT11 humidity sensor. The code is only for the humidity integer value. I don't measure the temperature or checksum, but this can easily be...
Below is code that will work to communicate with a DHT11 humidity sensor. The code is only for the humidity integer value. I don't measure the temperature or checksum, but this can easily be done...
While driving home it finally dawned on me that this might be the problem, from the data sheet:
"Fail-Safe Clock Monitor (FSCM) designed to detect a failure of the external clock source and switch...
Thanks for everyone's suggestions. In the end nothing works. It might very well be that the configuration setting s are correct but unless OSCCON selects the external crystal as its source it...
I don't have any "device.reference" subdirectory associated with pbp3. Maybe I need to uninstall and reinstall the software.
When I read the device after programming it doesn't list the config...
Thanks for your reply.
1. Changing to portb =128 doesn't have an impact on anything.
2. I don't seem to have the file "Device Reference". I'm running version 5.0.0.5 compiler version...
Thanks for this. I'm using pbp3 so I copied and pasted and it compiled. The program still doesn't seem to time correctly tho, which I describe below.
-- How did you know this was the correct...
I've tried
#config
__config1 _FOSC_HS & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_ON & _IESO_ON & _FCMEN_ON & _LVP_OFF & _WRT_OFF
#endconfig
at the top the basic...
I am trying to use a 20 MHz crystal with a PIC16F886. When I select the external HS crystal in various ways it does not work rather the PIC runs at 4 MHZ, even tho the define is for OSC 20. This is...
The MLX90614 IR sensor communicates using SMBus which requires the Start bit be repeated without a stop bit in between. I saw one posting that looked like PBP that showed the I2CREAD as as working...
I need to have my microcontroller act upon different commands sent. For example if "GC" is sent it turns on a motor. If "GQ" is sent it sends back data.
I would expect it to be something like...