Вт мар 14, 2017 16:00:15
Error[151] C:\TEMP\TEST.X\TEST.ASM 1222 : Operand contains unresolvable labels or is too complex
IF HIGH(1024) != 0
Ср июн 07, 2017 13:49:18
Ср июн 07, 2017 14:59:22
Вс июн 11, 2017 11:12:52
Вс июн 11, 2017 11:27:34
Вс июн 11, 2017 14:01:10
onfiguration for "pic16f628a" is
end configuration;
testbench for "pic16f628a" is
begin
process is
begin
wait;
end process;
clk_1: process is
begin
loop
T1OSCI <= '0';
wait for 200 ns ;
T1OSCI <= '1';
wait for 400 ns ;
end loop;
T1OSCI <= '1';
end process clk_1;
end testbench;
Пн июн 12, 2017 11:33:19
Вт сен 19, 2017 19:32:27
Вт сен 19, 2017 19:54:57
Вт сен 19, 2017 20:37:55
Попробуйте вместо bsf/bcf PORTA... писать bsf/bcf LATA. Ну и аналогично все записи в порты делать через LAT регистры, а не PORT.
Вт сен 19, 2017 21:22:28
Пт окт 06, 2017 06:27:13
Пт окт 06, 2017 07:07:36
Пт окт 06, 2017 08:09:23
Пт окт 06, 2017 09:00:28
int lcd_write_8_bit(int);
lcd_write_8_bit(tab[simv+j]); // П
Пт окт 06, 2017 09:12:02
Пт окт 06, 2017 09:37:28
Because the standard says so. The operands to binary operators undergo integral promotion, in which anything smaller than an int is promoted to int; the results of the operation have type int as well. And if the original value were, say, 0x12, the results would be 0x120, and assigning this to an unsigned char will cause a change in value. (The assigned value will be 0x20.) Whence the warning.
Пт окт 06, 2017 09:51:57
Пт окт 06, 2017 10:12:42
Но почему-то выдаёт такое же предупреждение.c = (c << 1) | (c >> 7);
if c is unsigned and non-volatile, the compiler will detect that the intended
operation is a rotate left of 1 bit and will encode the output using the PIC MCU rotate
instructions.
Сб окт 07, 2017 12:58:02
c = (c << 1) | (c >> 7);