Porównaj commity

...

6 Commity

Autor SHA1 Wiadomość Data
David Fainitski f04f5efd4d
Update README.md 2022-09-04 07:35:39 -07:00
David Fainitski 509be64428
Update README.md 2022-09-04 07:35:13 -07:00
David Fainitski 41ac6f8c05
Update README.md 2022-09-04 07:34:42 -07:00
David Fainitski 4d95f723b4
Add files via upload 2022-09-04 07:31:36 -07:00
David Fainitski e30f3d1bbf
Add files via upload 2022-09-04 07:31:00 -07:00
David Fainitski 4bd9977824
Delete main.c 2022-09-04 07:30:31 -07:00
3 zmienionych plików z 21 dodań i 16 usunięć

Wyświetl plik

@ -12,7 +12,7 @@ char txt[8], txt_2[8];
unsigned long Tick = 0; // ms system tick
int Voltage, Voltage_old = 0;
char btn_1_cnt = 0, btn_2_cnt = 0;
unsigned long volt_cnt = 0, watch_cnt = 0, btn_cnt = 0, off_cnt, disp_cnt;
unsigned long volt_cnt = 0, watch_cnt = 0, btn_cnt = 0, off_cnt = 10, disp_cnt=10;
int PWR, SWR, SWR_ind = 0, SWR_fixed_old = 100, PWR_fixed_old = 9999;
char ind = 0, cap = 0, SW = 0;
bit Overflow, B_short, B_long, B_xlong, gre, E_short, E_long;
@ -20,17 +20,19 @@ bit Overflow, B_short, B_long, B_xlong, gre, E_short, E_long;
int Rel_Del = 8, rldl, min_for_start = 10, max_for_start = 150;
int Auto_delta = 130; // 1.3 SWR
unsigned long Disp_time = 300; // Time in seconds
unsigned long Off_time = 1800; // Time in seconds
#define Disp_time 300000 // Time in milliseconds 0 to always on
#define Off_time 0 //1800000 // Time in milliseconds 0 to always on
#define FW_VER "1.5"
// interrupt processing
void interupt() iv 0x0004 {
//
if(TMR0IF_bit) { // Timer0
if(TMR0IF_bit) { // Timer0 every 1ms
TMR0IF_bit = 0;
Tick++;
if(disp_cnt!=0) disp_cnt--;
if(off_cnt!=0) off_cnt--;
TMR0L = 0xC0; // 8_000 cycles to OF
TMR0H = 0xE0;
//
@ -38,8 +40,8 @@ void interupt() iv 0x0004 {
btn_cnt += 10;
//
if(GetButton | Start){
disp_cnt = Tick + Disp_time*1000;
off_cnt = Tick + Off_time*1000;
disp_cnt = Disp_time;
off_cnt = Off_time;
}
//
if(GetButton){ //
@ -80,8 +82,8 @@ void main() {
ADC_Init();
Overflow = 0;
//
disp_cnt = Tick + Disp_time*1000;
off_cnt = Tick + Off_time*1000;
disp_cnt = Disp_time;
off_cnt = Off_time;
//
rldl = Rel_Del;
@ -98,12 +100,12 @@ void main() {
watch_swr();
}
//
if(Tick>=disp_cnt){ // Display off
if(Disp_time!=0 && disp_cnt==0){ // Display off
//Disp = 0;
OLED_PWD = 0;
}
//
if(Tick>=off_cnt){ // Go to power off
if(Off_time!=0 && off_cnt==0){ // Go to power off
power_off();
}
//
@ -158,8 +160,8 @@ void oled_start(){
volt_cnt = Tick + 1;
watch_cnt = Tick;
B_short = 0; B_long = 0; B_xlong = 0, E_short = 0; E_long = 0;
disp_cnt = Tick + Disp_time*1000;
off_cnt = Tick + Off_time*1000;
disp_cnt = Disp_time;
off_cnt = Off_time;
return;
}
//
@ -181,8 +183,8 @@ void watch_swr(void){
//
if(PWR_fixed>0){ // Turn on the display
if(OLED_PWD){
disp_cnt = Tick + Disp_time*1000;
off_cnt = Tick + Off_time*1000;
disp_cnt = Disp_time;
off_cnt = Off_time;
}
else oled_start();
};
@ -581,8 +583,8 @@ void get_pwr(){
//
if(PWR>0){
if(OLED_PWD){
disp_cnt = Tick + Disp_time*1000;
off_cnt = Tick + Off_time*1000;
disp_cnt = Disp_time;
off_cnt = Off_time;
}
else oled_start();
}

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -3,6 +3,9 @@
### Official conversation group - https://groups.io/g/ATU100
### Schematic and assembly instruction by VK3PE - http://carnut.info/ATU_N7DDC/ATU-10/ATU-10_by-vk3pe_build_info/ATU-10_vk3pe_V1.2_ALL_INFO_290921.pdf
###### AON FW is always on
no automatic power off. Use button to power off after using to avoid discharging the battery.
###### New in FW version 1.5
1 - Tuning algorithm improvement
2 - Minor changes