hello,
i have some problem in initializing usart in pic 16f877a.during initialization function calling void initserial (void) become getting error "conflicting declarations" but using "int" instead of using "void" there is no error,but some times void will not get also a problem. why this happens?
Hi archusvijay1, first What is the compiler you are using? I guess is something like CCS. Maybe the problem arises because the compiler has a native function with a prototype similar to the function you are declaring, i.e.
Code:
void initserial(void)
.
Also in your next post try to be more specific, that is, put more details on your problem to allow others to help you more. Yosmany325.