Telling work that I'm pregnant

How soon do I have to tell Human Resources about being pregnant? This is all new to me, I'm 12 weeks pregnant today and haven't really told anyone here but my immediate supervisor and some of my close coworkers.