Looks like no one has answered. Maybe you need to do some research.
AM radio: What frequency range? ____Khz. to ____Khz.
Arduino UNO R3: What computer? ATmega328 is that right?
What clock frequency? 16mhz or 20mhz?
We have 16mhz and need 1mhz. So we need to divide by 16. (what other numbers will work? 15? 14?)
Get data sheet on the ATmega328. (What counters does hit have?) 8 bit and 16 bit
Get data sheet on ATmega328 counter timers. (can you do a divide by 16?)
Read; What counters are used for UART? What counters are unused that you can play with?
Do an internet search for "Arduino UNO counters timers". Look for utube videos and help examples.
I have seen examples for making audio tones. 1khz, 2khz There are examples to make music, and make "beep". If you can find the "beep" then you can change the code to make 1mhz. (1000 faster)
I think some "beep" examples they are using "pin high, pin low". This will never work at 1mhz. You need to use a counter in hardware. (this will not use any CPU power)
Please report back when you find some answers. If you can not find an answer ask more questions.