Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hello sir,
Thank you for clearing the concept of APB master and APB slave. I was thinking that APB slave can be interfaced to APB master. So any peripheral using APB protocol will act as a slave and will use APB slave protocol and this will ultimately get connected to a processor using APB...
Thanks for the reply sir,
However how to assign values to output port then. It is APB master, it will select the slave, it means data has to be govern by master, so ports must be declared as output if i am not wrong. So if this is wrong can you please tell me the right way.
Hello all,
I have just started learning verilog. Now trying to write APB protocol for master. Flow may not be correct so please consider that. However i am getting some error which i am unable to understand. Here is the design and testbench code.
Design Module
module apb_master...
Thanks klausST for your suggestions. However baud rate can not be changed now as other hardware has the same one and it is fixed. However will try to change display routine. Will display time change per minute instead of per second now.
1602332211
Hello all,
The data controller going to receive...
Thanks for your valuable time and suggestions sir. Can you please comment on the second code.
Does it mean that i should not use 'While' inside the ISR.
Little edit is there. Using this i am able to receive the data which i sent manually from serial terminal. However when tried to communicate with another PIC, LCD hangs up.
void interrupt(void){
if(RCIF_bit == 1){
UART1_Read_Text(output, ";", 9);
flag=1;
RCIF_bit =...
Hello all,
I have to interface a thermal printer, a 16x2 LCD, a RTC and have to do a UART communication with another PIC18F4520. i have done RTC, LCD interfacing and can run a thermal printer too. However i am trying to do a serial communication. When i do it either LCD goes blank or LCD hangs...
Hello all,
I am very new to FPGA development. I have Numato Uno Spartan 6 FPGA development board. I want to switch on and off the LED's on the board after 1 second. I tried to use CLK pin. Here is the code and constraint file.
module my_led(A,D,LED,CLK);
input A,D,CLK; //A and D are...
Hello paul,
I adopted your method to free up the pointer. Yes it is working now. Why i was trying to free the pointer was when i was concatenating first two bytes of the received characters and display them on serial window, as pointer was holding previous values, new values were getting...
Hello Paul,
I did declare Mydata[5] in the declaration part. To get Mydata = "XY" we have to use "strncat()" function right. Moreover "result" is a character pointer. So that to free it can we use *result = 0? I am using it. But it's not freeing the pointer.
Hello paul,
I tried this code
char * result
result = strncat(Mydata,Received_Data,2);
ModBus_CRC16(result,1);
UART1_Write_Text(cur_crc);
Delay_ms(1);
*result = 0;
Though it is working, but i am not sure in which...
Hello FVM,
I used IntToStr just to display data onto LCD and UART. Yes you are right, i am trying to decode Modbus ASCII protocol. What you have suggested , itried using following code,
if((Received_Data[0] >= '0') && (Received_Data[0] <= '9' )&&){Base_Char = 48;}
else if((Received_Data[0] >=...
Hello all,
I am writing a program for modbus protocol using Atmega8 and mikroc. I wrote a code to receive characters and store it in an array. Now i want to make a byte of these received characters. Like Received_char[0] and Received char[1] should form a byte, as this is a slave address, and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.