digital clock doesn't count on lcd engmshh wrote:PORTD=0x00;
DDRD=0xFF; //output
in Schematic Buttons connected to PORTD
PORTD must be programmed as input not output
Tuesday, 16 January 2018 - 15:48
Atmega32 overheating I suspect R2-R9 resistors (7segment current limiters?)
Recheck them :
1) are the value true 180 ohm
2) measure value on PCB, maybe short circuit because of low quality PCB or...
Shifting array three bytes yet keeping all elements jgmdesign wrote:The whole purpose of that picture(there is an error or two in it but that's ok) was to demonstrate a common piece of advice given by a respected community member,...
Sunday, 14 January 2018 - 15:03
return 0, return 1 What they do? Already explained in your link
İt says if calling i2c_star() is successfull or not
İt can be used for error handling when using i2c_start()
Sunday, 14 January 2018 - 13:09
Shifting array three bytes yet keeping all elements This is the code for your pencil work!
for your example max = 15
rotate_right_rgb(int a[], int max)
{
int i;
int r, g, b;
r = a[max - 3];
g = a[max - 2];
b = a[max - 1];
for (i...
Sunday, 14 January 2018 - 09:04
Would a simple on-off switch work for my circuit? wagnerlip wrote:internal protection diode connected forward to the VCC pin
you are right, I missed the protection diode!
I did this when I was student, dont remember...
Thursday, 11 January 2018 - 18:40
Would a simple on-off switch work for my circuit? İt may also done by using a PNP transistor,
The idea is :
trigger transistor Base by button,
hold base low by MCU,
Do your process,
Release Base from MCU
Connection...
Thursday, 11 January 2018 - 11:04
Need idea - Turning on/off LED using same button. ka7ehk wrote:My standard procedure is to create a variable named Button_Val which functions as a sort of shift register. Check the button regularly (say around 10ms for a human...
Can't disable clock divider in ATtiny816 slow_rider wrote:I don't care about the divider values and got this: CPU_CCP = CCP_IOREG_gc; 00000023 LDI R24,0xD8 Load immediate 00000024 OUT 0x34,R24 Out to I/O location CLKCTRL...
Tuesday, 9 January 2018 - 11:12
Can't disable clock divider in ATtiny816 this is auto code generated by CodeVisionAVR, maybe useful
register unsigned char n;
// Disable the system clock divisor, so that the system
// and peripheral clocks will...
engmshh wrote:PORTD=0x00; DDRD=0xFF; //output in Schematic Buttons connected to PORTD PORTD must be programmed as input not output
I suspect R2-R9 resistors (7segment current limiters?) Recheck them : 1) are the value true 180 ohm 2) measure value on PCB, maybe short circuit because of low quality PCB or...
Sorry I mixed c# code! İn c# its not allowed to define pointers using * İ m not sure here is true, i meant int * here
jgmdesign wrote:The whole purpose of that picture(there is an error or two in it but that's ok) was to demonstrate a common piece of advice given by a respected community member,...
Already explained in your link İt says if calling i2c_star() is successfull or not İt can be used for error handling when using i2c_start()
This is the code for your pencil work! for your example max = 15 rotate_right_rgb(int a[], int max) { int i; int r, g, b; r = a[max - 3]; g = a[max - 2]; b = a[max - 1]; for (i...
wagnerlip wrote:internal protection diode connected forward to the VCC pin you are right, I missed the protection diode! I did this when I was student, dont remember...
İt may also done by using a PNP transistor, The idea is : trigger transistor Base by button, hold base low by MCU, Do your process, Release Base from MCU Connection...
ka7ehk wrote:My standard procedure is to create a variable named Button_Val which functions as a sort of shift register. Check the button regularly (say around 10ms for a human...
Oki, İ got it!
slow_rider wrote:I don't care about the divider values and got this: CPU_CCP = CCP_IOREG_gc; 00000023 LDI R24,0xD8 Load immediate 00000024 OUT 0x34,R24 Out to I/O location CLKCTRL...
this is auto code generated by CodeVisionAVR, maybe useful register unsigned char n; // Disable the system clock divisor, so that the system // and peripheral clocks will...
Pages