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 tried using a logic analyzer, but the output doesn't change when I try to read the sensor register with different orientations.
Did some variations in code,
void wait()
{
while(PIR3bits.SSP1IF == 0);
PIR3bits.SSP1IF = 0;
}
void main()
{
TRISC = 0x18;
ANSELC = 0;
TRISB...
I am getting zero volts on all port B pins. I have burnt the code using MPLAB. This shouldn't be a problem right ? A hex file should be a hex file right ?
0x03 has stuck along with me since my last code which I wrote for PIC16F1508 proteus simulation. I used to get 31.25 KHz clock set in simulation log(attached picture) if I used SSPADD = 0x03. Using this value for other PIC controller(now 16F18877) is something wrong which I am doing. This lets...
I don't have 4.7k resistors now. I'll have to go to college for that (day-after-tomorrow).
I'll read the output on PORTB using LEDs that should be fine right ?
Can you please send me the .c file instead of HEX file so that I can do Step-by-Step debugging ?
I haven't found any specific instruction about using 10k resistors I am just using them. During debugging I can see that SDA and SCL pins go high hence I am concluding that 10k resistors should do...
These are my config settings, You can see - CONFIG 2, one PPS setting is present.
// PIC16F18877 Configuration Bit Settings
// 'C' source line config statements
// CONFIG1
#pragma config FEXTOSC = LP // External Oscillator mode selection bits (LP (crystal oscillator) optimized for...
All of my code is in main function. Do you want me to separate the reading code to make it more readable ?
I2C clock frequency is 31.25 KHz (SSP1ADD = 0X03). Should it necessarily be 32.78 KHz or 100 KHz ?
10 Kilo Ohms - Pull up registers. The SDA and SCL pins are pulled high since I have...
I am receiving same value as the output even when I change the orientation of the sensor.
What could be the reason ?
1) I send slave address (with write bit).
2) I send sub address.
3) I send slave address (with read bit).
void main(void)
{
TRISC = 0x18; // Set RC3(SCL) and RC4(SDA)...
1) I am trying to read the ambient temperature register in MCP9801 with the following code. My simulation is getting stuck on one line (highlighted in code below). I have attached the Simulation log.JPG.
2) I have referred to the the relevant discussions previously done, but still
wasn't...
Can anyone tell me in short how S11 is calculated in HFSS ? Does HFSS calculate Im(Z) and Re(Z) first and then it calculates S11. Or does it calculate S11 with the help of ratio of some voltages. If voltages then how does it calculate that ratio ?
Basically, If had lots and lots of time and I...
I have started with monopole disk antennas but I have very strict size constraints of maximum dimension to be 10 cm. I could get as low as 20 cm only. I use HFSS.
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.