Continue to Site

Welcome to EDAboard.com

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.

Recent content by djc

  1. D

    Verilog code for APB master

    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...
  2. D

    Verilog code for APB master

    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.
  3. D

    Verilog code for APB master

    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...
  4. D

    UART issue using PIC 18F4520 and Mikroc

    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...
  5. D

    UART issue using PIC 18F4520 and Mikroc

    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.
  6. D

    UART issue using PIC 18F4520 and Mikroc

    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 =...
  7. D

    UART issue using PIC 18F4520 and Mikroc

    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...
  8. D

    Error: The signal is not driven by any source pin in the design.

    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...
  9. D

    [AVR] Appending the received UART characters using ATMEGA8 and mikroc

    Hello, Thank you for pointing out my mistakes. Yes i will definitely look into the pointers and array topic thoroughly.
  10. D

    [AVR] Appending the received UART characters using ATMEGA8 and mikroc

    Hello paul, Sorry to bother you again. Please tell me why it is giving segmentation fault. #include <stdio.h> char * result=0; char c1=0; char Received_Data[2]={'1','B'}; int main() { printf("Hello World"); printf("\n"); *(result) = 0; c1=Received_Data[0]; if (c1>64)...
  11. D

    [AVR] Appending the received UART characters using ATMEGA8 and mikroc

    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...
  12. D

    [AVR] Appending the received UART characters using ATMEGA8 and mikroc

    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.
  13. D

    [AVR] Appending the received UART characters using ATMEGA8 and mikroc

    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...
  14. D

    [AVR] Appending the received UART characters using ATMEGA8 and mikroc

    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] >=...
  15. D

    [AVR] Appending the received UART characters using ATMEGA8 and mikroc

    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...

Part and Inventory Search

Back
Top