How to get only one led to blink
▲ 0 r/FPGA

How to get only one led to blink

I tried led[0] but it throws an error

u/GoingGranola — 4 days ago

uint8_t rv = PINB & (1 << PB2);

Can someone help me understand this code? I believe binary 1 gets shifted by whatever PB2 binary is and then where ever that is in memory is read by the PINB function and stored in rv.

What are the bits of PB2?

What is PINB?

Thank you.

reddit.com
u/GoingGranola — 17 days ago

Is it safe to remove these capacitors?

I have a suspicion that one of these caps is bad.

I am getting 100 ohm reading on the DDM across C15 and was wondering if it would be safe to remove and run the amp without it?

Thank you

u/GoingGranola — 2 months ago

MOVWF EECON2 doesnt work

When I try to MOVWF EECON2 to start a write sequence 0x55 is not loaded into EECON2 and I cant figure out why.

Thanks

u/GoingGranola — 3 months ago

What are the acceptable values for EEADRL and EEADRH in PIC16F1824?

Im trying to erase a "block" or "row" of memory (EEADRL:EEADRH).

Im confused on what the acceptable range is for this 2-byte address?

u/GoingGranola — 3 months ago

Im trying to write assembly in the C complier.

I get this error when I run the debugger and 0x070 doesnt move to the Working register.

I think I need to "initialize" the program to accept assembly but do not know how.

u/GoingGranola — 4 months ago